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 WebSocketFactoryWebSocketImpl createWebSocket(WebSocketAdapter a, List<Draft> drafts, Socket s)
createWebSocket in interface WebSocketFactoryByteChannel wrapChannel(SocketChannel channel, SelectionKey key) throws IOException
key - a SelectionKey of an open SocketChannel.IOExceptionCopyright © 2013. All Rights Reserved.