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