Package org.java_websocket.handshake
Interface Handshakedata
-
- All Known Subinterfaces:
ClientHandshake
,ClientHandshakeBuilder
,HandshakeBuilder
,ServerHandshake
,ServerHandshakeBuilder
- All Known Implementing Classes:
HandshakedataImpl1
,HandshakeImpl1Client
,HandshakeImpl1Server
public interface Handshakedata
The interface for the data of a handshake
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getContent()
Get the content of the handshakeString
getFieldValue(String name)
Gets the value of the fieldboolean
hasFieldValue(String name)
Checks if this handshake contains a specific fieldIterator<String>
iterateHttpFields()
Iterator for the http fields
-
-
-
Method Detail
-
iterateHttpFields
Iterator<String> iterateHttpFields()
Iterator for the http fields- Returns:
- the http fields
-
getFieldValue
String getFieldValue(String name)
Gets the value of the field- Parameters:
name
- The name of the field- Returns:
- the value of the field or an empty String if not in the handshake
-
hasFieldValue
boolean hasFieldValue(String name)
Checks if this handshake contains a specific field- Parameters:
name
- The name of the field- Returns:
- true, if it contains the field
-
getContent
byte[] getContent()
Get the content of the handshake- Returns:
- the content as byte-array
-
-