|
||||||||||
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(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. |
Method Detail |
---|
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 protocol
WebSocket
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 URI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |