public static interface WebSocketFactory.Acceptor
Modifier and Type | Method and Description |
---|---|
boolean |
checkOrigin(javax.servlet.http.HttpServletRequest request,
String origin)
Checks the origin of an incoming WebSocket handshake request.
|
WebSocket |
doWebSocketConnect(javax.servlet.http.HttpServletRequest request,
String protocol)
Factory method that applications needs to implement to return a
WebSocket object. |
WebSocket doWebSocketConnect(javax.servlet.http.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(javax.servlet.http.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.