-
- All Implemented Interfaces:
-
com.tds.common.websocket.handshake.HandshakeBuilder
,com.tds.common.websocket.handshake.Handshakedata
public class HandshakedataImpl1 implements HandshakeBuilder
Implementation of a handshake builder
-
-
Constructor Summary
Constructors Constructor Description HandshakedataImpl1()
Constructor for handshake implementation
-
Method Summary
Modifier and Type Method Description Array<byte>
getContent()
Get the content of the handshake void
setContent(Array<byte> content)
Setter for the content of the handshake Iterator<String>
iterateHttpFields()
Iterator for the http fields String
getFieldValue(String name)
Gets the value of the field void
put(String name, String value)
Adding a specific field with a specific value boolean
hasFieldValue(String name)
Checks if this handshake contains a specific field -
-
Method Detail
-
getContent
Array<byte> getContent()
Get the content of the handshake
-
setContent
void setContent(Array<byte> content)
Setter for the content of the handshake
- Parameters:
content
- the content to set
-
iterateHttpFields
Iterator<String> iterateHttpFields()
Iterator for the http fields
-
getFieldValue
String getFieldValue(String name)
Gets the value of the field
- Parameters:
name
- The name of the field
-
put
void put(String name, String value)
Adding a specific field with a specific value
- Parameters:
name
- the http fieldvalue
- the value for this field
-
hasFieldValue
boolean hasFieldValue(String name)
Checks if this handshake contains a specific field
- Parameters:
name
- The name of the field
-
-
-
-