Package org.java_websocket.handshake
Class HandshakeImpl1Server
java.lang.Object
org.java_websocket.handshake.HandshakedataImpl1
org.java_websocket.handshake.HandshakeImpl1Server
- All Implemented Interfaces:
HandshakeBuilder
,Handshakedata
,ServerHandshake
,ServerHandshakeBuilder
Implementation for a server handshake
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshort
Get the http status codeGet the http status messagevoid
setHttpStatus
(short status) Setter for the http status codevoid
setHttpStatusMessage
(String message) Setter for the http status messageMethods inherited from class org.java_websocket.handshake.HandshakedataImpl1
getContent, getFieldValue, hasFieldValue, iterateHttpFields, put, setContent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.java_websocket.handshake.HandshakeBuilder
put, setContent
Methods inherited from interface org.java_websocket.handshake.Handshakedata
getContent, getFieldValue, hasFieldValue, iterateHttpFields
-
Constructor Details
-
HandshakeImpl1Server
public HandshakeImpl1Server()
-
-
Method Details
-
getHttpStatusMessage
Description copied from interface:ServerHandshake
Get the http status message- Specified by:
getHttpStatusMessage
in interfaceServerHandshake
- Returns:
- the http status message
-
getHttpStatus
public short getHttpStatus()Description copied from interface:ServerHandshake
Get the http status code- Specified by:
getHttpStatus
in interfaceServerHandshake
- Returns:
- the http status code
-
setHttpStatusMessage
Description copied from interface:ServerHandshakeBuilder
Setter for the http status message- Specified by:
setHttpStatusMessage
in interfaceServerHandshakeBuilder
- Parameters:
message
- the http status message
-
setHttpStatus
public void setHttpStatus(short status) Description copied from interface:ServerHandshakeBuilder
Setter for the http status code- Specified by:
setHttpStatus
in interfaceServerHandshakeBuilder
- Parameters:
status
- the http status code
-