Package org.java_websocket.handshake
Interface Handshakedata
-
- All Known Subinterfaces:
ClientHandshake,ClientHandshakeBuilder,HandshakeBuilder,ServerHandshake,ServerHandshakeBuilder
- All Known Implementing Classes:
HandshakedataImpl1,HandshakeImpl1Client,HandshakeImpl1Server
public interface HandshakedataThe 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 handshakejava.lang.StringgetFieldValue(java.lang.String name)Gets the value of the fieldbooleanhasFieldValue(java.lang.String name)Checks if this handshake contains a specific fieldjava.util.Iterator<java.lang.String>iterateHttpFields()Iterator for the http fields
-
-
-
Method Detail
-
iterateHttpFields
java.util.Iterator<java.lang.String> iterateHttpFields()
Iterator for the http fields- Returns:
- the http fields
-
getFieldValue
java.lang.String getFieldValue(java.lang.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(java.lang.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
-
-