public static interface WebSocketServer.WebSocketServerFactory extends WebSocketFactory
Modifier and Type | Method and Description |
---|---|
WebSocketImpl |
createWebSocket(WebSocketAdapter a,
Draft d,
Socket s) |
WebSocketImpl |
createWebSocket(WebSocketAdapter a,
List<Draft> drafts,
Socket s) |
ByteChannel |
wrapChannel(SocketChannel channel,
SelectionKey key)
Allows to wrap the Socketchannel( key.channel() ) to insert a protocol layer( like ssl or proxy authentication) beyond the ws layer.
|
WebSocketImpl createWebSocket(WebSocketAdapter a, Draft d, Socket s)
createWebSocket
in interface WebSocketFactory
WebSocketImpl createWebSocket(WebSocketAdapter a, List<Draft> drafts, Socket s)
createWebSocket
in interface WebSocketFactory
ByteChannel wrapChannel(SocketChannel channel, SelectionKey key) throws IOException
key
- a SelectionKey of an open SocketChannel.IOException
Copyright © 2013. All Rights Reserved.