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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate shortAttribute for the http statusprivate StringAttribute for the http status message -
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 HandshakedataImpl1
getContent, getFieldValue, hasFieldValue, iterateHttpFields, put, setContentMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HandshakeBuilder
put, setContentMethods inherited from interface Handshakedata
getContent, getFieldValue, hasFieldValue, iterateHttpFields
-
Field Details
-
httpstatus
private short httpstatusAttribute for the http status -
httpstatusmessage
Attribute for the http status message
-
-
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
-