org.java_websocket.client
Class DefaultWebSocketClientFactory

java.lang.Object
  extended by org.java_websocket.client.DefaultWebSocketClientFactory
All Implemented Interfaces:
WebSocketClient.WebSocketClientFactory, WebSocketFactory

public class DefaultWebSocketClientFactory
extends Object
implements WebSocketClient.WebSocketClientFactory


Constructor Summary
DefaultWebSocketClientFactory(WebSocketClient webSocketClient)
           
 
Method Summary
 WebSocket createWebSocket(WebSocketAdapter a, Draft d, Socket s)
           
 WebSocket createWebSocket(WebSocketAdapter a, List<Draft> d, Socket s)
           
 ByteChannel wrapChannel(SocketChannel channel, SelectionKey c, String host, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWebSocketClientFactory

public DefaultWebSocketClientFactory(WebSocketClient webSocketClient)
Parameters:
webSocketClient -
Method Detail

createWebSocket

public WebSocket createWebSocket(WebSocketAdapter a,
                                 Draft d,
                                 Socket s)
Specified by:
createWebSocket in interface WebSocketFactory

createWebSocket

public WebSocket createWebSocket(WebSocketAdapter a,
                                 List<Draft> d,
                                 Socket s)
Specified by:
createWebSocket in interface WebSocketFactory

wrapChannel

public ByteChannel wrapChannel(SocketChannel channel,
                               SelectionKey c,
                               String host,
                               int port)
Specified by:
wrapChannel in interface WebSocketClient.WebSocketClientFactory


Copyright © 2013 Pusher. All Rights Reserved.