Top Description Methods
org.java_websocket.handshake

public Interface Handshakedata

Known Direct Subinterfaces
org.java_websocket.handshake.ServerHandshake, org.java_websocket.handshake.ClientHandshake, org.java_websocket.handshake.HandshakeBuilder
Imports
java.util.Iterator

The interface for the data of a handshake

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the content as byte-array
getContent
()

Get the content of the handshake

public String

Returns:

the value of the field or an empty String if not in the handshake
getFieldValue
(String
The name of the field
name
)

Gets the value of the field

public boolean

Returns:

true, if it contains the field
hasFieldValue
(String
The name of the field
name
)

Checks if this handshake contains a specific field

public Iterator<String>

Returns:

the http fields
iterateHttpFields
()

Iterator for the http fields

Method Detail

getContentback to summary
public byte[] getContent()

Get the content of the handshake

Returns:byte[]

the content as byte-array

getFieldValueback to summary
public String getFieldValue(String name)

Gets the value of the field

Parameters
name:String

The name of the field

Returns:String

the value of the field or an empty String if not in the handshake

hasFieldValueback to summary
public boolean hasFieldValue(String name)

Checks if this handshake contains a specific field

Parameters
name:String

The name of the field

Returns:boolean

true, if it contains the field

iterateHttpFieldsback to summary
public Iterator<String> iterateHttpFields()

Iterator for the http fields

Returns:Iterator<String>

the http fields