public class DefaultWebSocketServerFactory extends Object implements WebSocketServer.WebSocketServerFactory
| Constructor and Description |
|---|
DefaultWebSocketServerFactory() |
| Modifier and Type | Method and Description |
|---|---|
WebSocketImpl |
createWebSocket(WebSocketAdapter a,
Draft d,
Socket s) |
WebSocketImpl |
createWebSocket(WebSocketAdapter a,
List<Draft> d,
Socket s) |
SocketChannel |
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.
|
public WebSocketImpl createWebSocket(WebSocketAdapter a, Draft d, Socket s)
createWebSocket in interface WebSocketServer.WebSocketServerFactorycreateWebSocket in interface WebSocketFactorypublic WebSocketImpl createWebSocket(WebSocketAdapter a, List<Draft> d, Socket s)
createWebSocket in interface WebSocketServer.WebSocketServerFactorycreateWebSocket in interface WebSocketFactorypublic SocketChannel wrapChannel(SocketChannel channel, SelectionKey key)
WebSocketServer.WebSocketServerFactorywrapChannel in interface WebSocketServer.WebSocketServerFactorykey - a SelectionKey of an open SocketChannel.Copyright © 2013. All Rights Reserved.