public abstract class

WSAbstractHandshake

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

Summary

[Expand]
Inherited Constants
From interface com.ericsson.research.transport.ws.spi.WSConstants
Fields
protected byte[] body
protected int expectedHandshakeBodyLength
protected HashMap<StringString> headers
protected String preamble
protected WSAbstractProtocol protocol
[Expand]
Inherited Fields
From interface com.ericsson.research.transport.ws.spi.WSConstants
Public Constructors
WSAbstractHandshake(WSAbstractProtocol protocol)
Public Methods
void bodyRead()
int deserialize(byte[] data, int length)
String getHeader(String name)
abstract void headersRead()
void preambleRead()
abstract void sendHandshake(OutputStream os)
void sendResponse()
Protected Methods
void checkHTTPProtocol(String protocol, int minMaj, int minMin)
byte[] computeSHA1(String s)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected byte[] body

protected int expectedHandshakeBodyLength

protected HashMap<StringString> headers

protected String preamble

protected WSAbstractProtocol protocol

Public Constructors

public WSAbstractHandshake (WSAbstractProtocol protocol)

Public Methods

public void bodyRead ()

Throws
WSException

public int deserialize (byte[] data, int length)

Throws
WSException

public String getHeader (String name)

public abstract void headersRead ()

Throws
WSException

public void preambleRead ()

Throws
WSException

public abstract void sendHandshake (OutputStream os)

Throws
IOException

public void sendResponse ()

Throws
IOException

Protected Methods

protected void checkHTTPProtocol (String protocol, int minMaj, int minMin)

Throws
WSException

protected byte[] computeSHA1 (String s)

Throws
WSException