public abstract class

WSFactory

extends Object
java.lang.Object
   ↳ com.ericsson.research.transport.ws.WSFactory
Known Direct Subclasses

Summary

Constants
int VERSION_HIXIE_75
int VERSION_HIXIE_76
int VERSION_HYBI_10
int VERSION_RFC_6455
Public Constructors
WSFactory()
Public Methods
static WSInterface createWebSocketClient(WSURI uri, WSListener listener, int version, WSSecurityContext securityContext)
static WSServer createWebSocketServer(String host, int port, WSAcceptListener serverListener, WSSecurityContext securityContext)
static WSFactory getInstance()
static WSServer startWebSocketServer(String host, int port, WSAcceptListener serverListener, WSSecurityContext securityContext)
static void stopWebSocketServer(WSServer serverSocket)
Protected Methods
abstract WSInterface _createWebSocketClient(WSURI uri, WSListener listener, int version, WSSecurityContext securityContext)
abstract WSServer _createWebSocketServer(String host, int port, WSAcceptListener serverListener, WSSecurityContext securityContext)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int VERSION_HIXIE_75

Constant Value: 1 (0x00000001)

public static final int VERSION_HIXIE_76

Constant Value: 2 (0x00000002)

public static final int VERSION_HYBI_10

Constant Value: 3 (0x00000003)

public static final int VERSION_RFC_6455

Constant Value: 4 (0x00000004)

Public Constructors

public WSFactory ()

Public Methods

public static WSInterface createWebSocketClient (WSURI uri, WSListener listener, int version, WSSecurityContext securityContext)

Throws
IOException

public static WSServer createWebSocketServer (String host, int port, WSAcceptListener serverListener, WSSecurityContext securityContext)

Throws
IOException

public static WSServer startWebSocketServer (String host, int port, WSAcceptListener serverListener, WSSecurityContext securityContext)

Throws
IOException

public static void stopWebSocketServer (WSServer serverSocket)

Protected Methods

protected abstract WSInterface _createWebSocketClient (WSURI uri, WSListener listener, int version, WSSecurityContext securityContext)

Throws
IOException

protected abstract WSServer _createWebSocketServer (String host, int port, WSAcceptListener serverListener, WSSecurityContext securityContext)

Throws
IOException