public interface WebSocketServletFactory
| Modifier and Type | Interface and Description |
|---|---|
static class |
WebSocketServletFactory.Loader |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptWebSocket(HttpServletRequest request,
HttpServletResponse response) |
boolean |
acceptWebSocket(WebSocketCreator creator,
HttpServletRequest request,
HttpServletResponse response) |
void |
cleanup() |
WebSocketServletFactory |
createFactory(WebSocketPolicy policy) |
WebSocketCreator |
getCreator() |
ExtensionFactory |
getExtensionFactory() |
WebSocketPolicy |
getPolicy()
Get the base policy in use for WebSockets.
|
void |
init() |
boolean |
isUpgradeRequest(HttpServletRequest request,
HttpServletResponse response) |
void |
register(Class<?> websocketPojo)
Register a websocket class pojo with the default
WebSocketCreator. |
void |
setCreator(WebSocketCreator creator) |
boolean acceptWebSocket(HttpServletRequest request, HttpServletResponse response) throws IOException
IOExceptionboolean acceptWebSocket(WebSocketCreator creator, HttpServletRequest request, HttpServletResponse response) throws IOException
IOExceptionvoid cleanup()
WebSocketServletFactory createFactory(WebSocketPolicy policy)
WebSocketCreator getCreator()
ExtensionFactory getExtensionFactory()
WebSocketPolicy getPolicy()
Note: individual WebSocket implementations can override some of the values in here by using the @WebSocket annotation.
boolean isUpgradeRequest(HttpServletRequest request, HttpServletResponse response)
void register(Class<?> websocketPojo)
WebSocketCreator.
Note: only required if using the default WebSocketCreator provided by this factory.
websocketPojo - the class to instantiate for each incoming websocket upgrade request.void setCreator(WebSocketCreator creator)
Copyright © 1995-2015 Webtide. All Rights Reserved.