public static interface WebSocketFactory.Acceptor
Modifier and Type | Method and Description |
---|---|
boolean |
checkOrigin(javax.servlet.http.HttpServletRequest request,
java.lang.String origin)
Checks the origin of an incoming WebSocket handshake request.
|
WebSocket |
doWebSocketConnect(javax.servlet.http.HttpServletRequest request,
java.lang.String protocol)
Factory method that applications needs to implement to return a
WebSocket object. |
WebSocket doWebSocketConnect(javax.servlet.http.HttpServletRequest request, java.lang.String protocol)
Factory method that applications needs to implement to return a
WebSocket
object.
request
- the incoming HTTP upgrade requestprotocol
- the websocket sub protocolWebSocket
object that will handle websocket events.boolean checkOrigin(javax.servlet.http.HttpServletRequest request, java.lang.String origin)
Checks the origin of an incoming WebSocket handshake request.
request
- the incoming HTTP upgrade requestorigin
- the origin URICopyright © 2013. All Rights Reserved.