public abstract class

WSAbstractProtocol

extends WSAbstractProtocolWrapper
implements WSConstants
java.lang.Object
   ↳ com.ericsson.research.transport.ws.spi.WSAbstractProtocolWrapper
     ↳ com.ericsson.research.transport.ws.spi.WSAbstractProtocol
Known Direct Subclasses
Known Indirect Subclasses

Summary

Constants
int CLOSED
int CLOSING
int HANDSHAKING
int OPEN
[Expand]
Inherited Constants
From interface com.ericsson.research.transport.ws.spi.WSConstants
Fields
protected byte[] buf
protected boolean client
protected WSAbstractFrame currentFrame
protected WSAbstractHandshake handshake
protected String host
protected String location
protected String origin
protected int port
protected String protocol
protected String resource
protected final WSSecurityContext securityContext
protected int state
protected WSAbstractProtocolWrapper wrapper
[Expand]
Inherited Fields
From class com.ericsson.research.transport.ws.spi.WSAbstractProtocolWrapper
From interface com.ericsson.research.transport.ws.spi.WSConstants
Public Constructors
WSAbstractProtocol(WSURI uri, WSSecurityContext securityContext)
WSAbstractProtocol(WSSecurityContext securityContext)
Public Methods
synchronized void close()
void forceClose()
OutputStream getRawOutput()
String getState()
void notifyConnected()
void notifyDisconnected()
void notifySocketData(byte[] data, int length)
Protected Methods
abstract WSAbstractFrame createEmptyFrame()
abstract void dispatchFrame(WSAbstractFrame frame)
abstract WSAbstractHandshake getHandshake()
void setWrapper(WSAbstractProtocolWrapper wrapper)
[Expand]
Inherited Methods
From class com.ericsson.research.transport.ws.spi.WSAbstractProtocolWrapper
From class java.lang.Object
From interface com.ericsson.research.transport.ws.WSInterface
From interface com.ericsson.research.transport.ws.WSListener

Constants

public static final int CLOSED

Constant Value: 3 (0x00000003)

public static final int CLOSING

Constant Value: 2 (0x00000002)

public static final int HANDSHAKING

Constant Value: 0 (0x00000000)

public static final int OPEN

Constant Value: 1 (0x00000001)

Fields

protected byte[] buf

protected boolean client

protected WSAbstractFrame currentFrame

protected WSAbstractHandshake handshake

protected String host

protected String location

protected String origin

protected int port

protected String protocol

protected String resource

protected final WSSecurityContext securityContext

protected int state

protected WSAbstractProtocolWrapper wrapper

Public Constructors

public WSAbstractProtocol (WSURI uri, WSSecurityContext securityContext)

public WSAbstractProtocol (WSSecurityContext securityContext)

Public Methods

public synchronized void close ()

public void forceClose ()

public OutputStream getRawOutput ()

Throws
IOException

public String getState ()

public void notifyConnected ()

public void notifyDisconnected ()

public void notifySocketData (byte[] data, int length)

Protected Methods

protected abstract WSAbstractFrame createEmptyFrame ()

protected abstract void dispatchFrame (WSAbstractFrame frame)

protected abstract WSAbstractHandshake getHandshake ()

protected void setWrapper (WSAbstractProtocolWrapper wrapper)