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 TypeMethodDescriptionshortGet the http status codeGet the http status messagevoidsetHttpStatus(short status) Setter for the http status codevoidsetHttpStatusMessage(String message) Setter for the http status messageMethods inherited from class org.java_websocket.handshake.HandshakedataImpl1
getContent, getFieldValue, hasFieldValue, iterateHttpFields, put, setContentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.java_websocket.handshake.HandshakeBuilder
put, setContentMethods inherited from interface org.java_websocket.handshake.Handshakedata
getContent, getFieldValue, hasFieldValue, iterateHttpFields
-
Constructor Details
-
HandshakeImpl1Server
public HandshakeImpl1Server()
-
-
Method Details
-
getHttpStatusMessage
Description copied from interface:ServerHandshakeGet the http status message- Specified by:
getHttpStatusMessagein interfaceServerHandshake- Returns:
- the http status message
-
getHttpStatus
public short getHttpStatus()Description copied from interface:ServerHandshakeGet the http status code- Specified by:
getHttpStatusin interfaceServerHandshake- Returns:
- the http status code
-
setHttpStatusMessage
Description copied from interface:ServerHandshakeBuilderSetter for the http status message- Specified by:
setHttpStatusMessagein interfaceServerHandshakeBuilder- Parameters:
message- the http status message
-
setHttpStatus
public void setHttpStatus(short status) Description copied from interface:ServerHandshakeBuilderSetter for the http status code- Specified by:
setHttpStatusin interfaceServerHandshakeBuilder- Parameters:
status- the http status code
-