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
Modifier and TypeMethodDescriptionbyte[]
Get the content of the handshakegetFieldValue
(String name) Gets the value of the fieldboolean
hasFieldValue
(String name) Checks if this handshake contains a specific fieldIterator for the http fields
-
Method Details
-
iterateHttpFields
Iterator for the http fields- Returns:
- the http fields
-
getFieldValue
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
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
-