public class DefaultSSLWebSocketServerFactory extends Object implements WebSocketServer.WebSocketServerFactory
Modifier and Type | Field and Description |
---|---|
protected ExecutorService |
exec |
protected SSLContext |
sslcontext |
Constructor and Description |
---|
DefaultSSLWebSocketServerFactory(SSLContext sslContext) |
DefaultSSLWebSocketServerFactory(SSLContext sslContext,
ExecutorService exec) |
Modifier and Type | Method and Description |
---|---|
WebSocketImpl |
createWebSocket(WebSocketAdapter a,
Draft d,
Socket c) |
WebSocketImpl |
createWebSocket(WebSocketAdapter a,
List<Draft> d,
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.
|
protected SSLContext sslcontext
protected ExecutorService exec
public DefaultSSLWebSocketServerFactory(SSLContext sslContext)
public DefaultSSLWebSocketServerFactory(SSLContext sslContext, ExecutorService exec)
public ByteChannel wrapChannel(SocketChannel channel, SelectionKey key) throws IOException
WebSocketServer.WebSocketServerFactory
wrapChannel
in interface WebSocketServer.WebSocketServerFactory
key
- a SelectionKey of an open SocketChannel.IOException
public WebSocketImpl createWebSocket(WebSocketAdapter a, Draft d, Socket c)
createWebSocket
in interface WebSocketServer.WebSocketServerFactory
createWebSocket
in interface WebSocketFactory
public WebSocketImpl createWebSocket(WebSocketAdapter a, List<Draft> d, Socket s)
createWebSocket
in interface WebSocketServer.WebSocketServerFactory
createWebSocket
in interface WebSocketFactory
Copyright © 2013. All Rights Reserved.