Package org.java_websocket.handshake
Interface HandshakeBuilder
-
- All Superinterfaces:
Handshakedata
- All Known Subinterfaces:
ClientHandshakeBuilder
,ServerHandshakeBuilder
- All Known Implementing Classes:
HandshakedataImpl1
,HandshakeImpl1Client
,HandshakeImpl1Server
public interface HandshakeBuilder extends Handshakedata
The interface for building a handshake
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
put(java.lang.String name, java.lang.String value)
Adding a specific field with a specific valuevoid
setContent(byte[] content)
Setter for the content of the handshake-
Methods inherited from interface org.java_websocket.handshake.Handshakedata
getContent, getFieldValue, hasFieldValue, iterateHttpFields
-
-
-
-
Method Detail
-
setContent
void setContent(byte[] content)
Setter for the content of the handshake- Parameters:
content
- the content to set
-
put
void put(java.lang.String name, java.lang.String value)
Adding a specific field with a specific value- Parameters:
name
- the http fieldvalue
- the value for this field
-
-