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) |
WebSocketCreator |
getCreator() |
ExtensionFactory |
getExtensionFactory() |
WebSocketPolicy |
getPolicy()
Get the base policy in use for WebSockets.
|
boolean |
isUpgradeRequest(HttpServletRequest request,
HttpServletResponse response) |
void |
register(Class<?> websocketPojo)
Register a websocket class pojo with the default
WebSocketCreator . |
void |
setCreator(WebSocketCreator creator) |
void |
start() |
void |
stop() |
boolean acceptWebSocket(HttpServletRequest request, HttpServletResponse response) throws IOException
IOException
boolean acceptWebSocket(WebSocketCreator creator, HttpServletRequest request, HttpServletResponse response) throws IOException
IOException
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–2017 Webtide. All rights reserved.