public static interface WebSocketFactory.Acceptor
Modifier and Type | Method and Description |
---|---|
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. |
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 protocolWebSocket
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 URICopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.