Top Description Fields Constructors Methods
org.java_websocket.handshake

public Class HandshakedataImpl1

extends Object
implements HandshakeBuilder
Class Inheritance
All Implemented Interfaces
org.java_websocket.handshake.HandshakeBuilder, org.java_websocket.handshake.Handshakedata
Known Direct Subclasses
org.java_websocket.handshake.HandshakeImpl1Client, org.java_websocket.handshake.HandshakeImpl1Server
Imports
java.util.Collections, .Iterator, .TreeMap

Implementation of a handshake builder

Field Summary

Modifier and TypeField and Description
private byte[]
content

Attribute for the content of the handshake

private TreeMap<String, String>
map

Attribute for the http fields and values

Constructor Summary

AccessConstructor and Description
public
HandshakedataImpl1()

Constructor for handshake implementation

Method Summary

Modifier and TypeMethod and Description
public byte[]
getContent()

Implements org.java_websocket.handshake.Handshakedata.getContent.

Get the content of the handshake

public String
public boolean
hasFieldValue(String name)

Implements org.java_websocket.handshake.Handshakedata.hasFieldValue.

Checks if this handshake contains a specific field

public Iterator<String>
public void
put(String name, String value)

Implements org.java_websocket.handshake.HandshakeBuilder.put.

Adding a specific field with a specific value

public void
setContent(byte[] content)

Implements org.java_websocket.handshake.HandshakeBuilder.setContent.

Setter for the content of the handshake

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentback to summary
private byte[] content

Attribute for the content of the handshake

mapback to summary
private TreeMap<String, String> map

Attribute for the http fields and values

Constructor Detail

HandshakedataImpl1back to summary
public HandshakedataImpl1()

Constructor for handshake implementation

Method Detail

getContentback to summary
public byte[] getContent()

Implements org.java_websocket.handshake.Handshakedata.getContent.

Doc from org.java_websocket.handshake.Handshakedata.getContent.

Get the content of the handshake

Annotations
@Override
getFieldValueback to summary
public String getFieldValue(String name)

Implements org.java_websocket.handshake.Handshakedata.getFieldValue.

Doc from org.java_websocket.handshake.Handshakedata.getFieldValue.

Gets the value of the field

Annotations
@Override
hasFieldValueback to summary
public boolean hasFieldValue(String name)

Implements org.java_websocket.handshake.Handshakedata.hasFieldValue.

Doc from org.java_websocket.handshake.Handshakedata.hasFieldValue.

Checks if this handshake contains a specific field

Annotations
@Override
iterateHttpFieldsback to summary
public Iterator<String> iterateHttpFields()

Implements org.java_websocket.handshake.Handshakedata.iterateHttpFields.

Doc from org.java_websocket.handshake.Handshakedata.iterateHttpFields.

Iterator for the http fields

Annotations
@Override
putback to summary
public void put(String name, String value)

Implements org.java_websocket.handshake.HandshakeBuilder.put.

Doc from org.java_websocket.handshake.HandshakeBuilder.put.

Adding a specific field with a specific value

Annotations
@Override
setContentback to summary
public void setContent(byte[] content)

Implements org.java_websocket.handshake.HandshakeBuilder.setContent.

Doc from org.java_websocket.handshake.HandshakeBuilder.setContent.

Setter for the content of the handshake

Annotations
@Override