WebSocketFactoryCustomSSLWebSocketServerFactory, DefaultSSLWebSocketServerFactory, DefaultWebSocketServerFactorypublic interface WebSocketServerFactory extends WebSocketFactory
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Allows to shutdown the websocket factory for a clean shutdown
|
WebSocketImpl |
createWebSocket(WebSocketAdapter a,
java.util.List<Draft> drafts) |
Create a new Websocket with the provided listener, drafts and socket
|
WebSocketImpl |
createWebSocket(WebSocketAdapter a,
Draft d) |
Create a new Websocket with the provided listener, drafts and socket
|
java.nio.channels.ByteChannel |
wrapChannel(java.nio.channels.SocketChannel channel,
java.nio.channels.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)
WebSocketFactorycreateWebSocket in interface WebSocketFactorya - The Listener for the WebsocketImpld - The draft which should be usedWebSocketImpl createWebSocket(WebSocketAdapter a, java.util.List<Draft> drafts)
WebSocketFactorycreateWebSocket in interface WebSocketFactorya - The Listener for the WebsocketImpldrafts - The drafts which should be usedjava.nio.channels.ByteChannel wrapChannel(java.nio.channels.SocketChannel channel,
java.nio.channels.SelectionKey key)
throws java.io.IOException
channel - The SocketChannel to wrapkey - a SelectionKey of an open SocketChannel.java.io.IOException - may be thrown while writing on the channelvoid close()