public class HandshakedataImpl1 extends Object implements HandshakeBuilder
Constructor and Description |
---|
HandshakedataImpl1()
Constructor for handshake implementation
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent()
Get the content of the handshake
|
String |
getFieldValue(String name)
Gets the value of the field
|
boolean |
hasFieldValue(String name)
Checks if this handshake contains a specific field
|
Iterator<String> |
iterateHttpFields()
Iterator for the http fields
|
void |
put(String name,
String value)
Adding a specific field with a specific value
|
void |
setContent(byte[] content)
Setter for the content of the handshake
|
public HandshakedataImpl1()
public Iterator<String> iterateHttpFields()
Handshakedata
iterateHttpFields
in interface Handshakedata
public String getFieldValue(String name)
Handshakedata
getFieldValue
in interface Handshakedata
name
- The name of the fieldpublic byte[] getContent()
Handshakedata
getContent
in interface Handshakedata
public void setContent(byte[] content)
HandshakeBuilder
setContent
in interface HandshakeBuilder
content
- the content to setpublic void put(String name, String value)
HandshakeBuilder
put
in interface HandshakeBuilder
name
- the http fieldvalue
- the value for this fieldpublic boolean hasFieldValue(String name)
Handshakedata
hasFieldValue
in interface Handshakedata
name
- The name of the fieldCopyright © 2018. All rights reserved.