|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface WebSocketFactory.Acceptor
Method Summary | |
---|---|
boolean |
checkOrigin(HttpServletRequest request,
String origin)
Checks the origin of an incoming WebSocket handshake request. |
WebSocket |
doWebSocketConnect(HttpServletRequest request,
String protocol)
Factory method that applications needs to implement to return a WebSocket object. |
Method Detail |
---|
WebSocket doWebSocketConnect(HttpServletRequest request, String protocol)
Factory method that applications needs to implement to return a
WebSocket
object.
request
- the incoming HTTP upgrade requestprotocol
- the websocket sub protocol
WebSocket
object that will handle websocket events.boolean checkOrigin(HttpServletRequest request, String origin)
Checks the origin of an incoming WebSocket handshake request.
request
- the incoming HTTP upgrade requestorigin
- the origin URI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |