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
public class HandshakeImpl1Server extends HandshakedataImpl1 implements ServerHandshakeBuilder
Implementation for a server handshake
-
-
Constructor Summary
Constructors Constructor Description HandshakeImpl1Server()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetHttpStatus()Get the http status codeStringgetHttpStatusMessage()Get the http status messagevoidsetHttpStatus(short status)Setter for the http status codevoidsetHttpStatusMessage(String message)Setter for the http status message-
Methods 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
-
-
-
-
Method Detail
-
getHttpStatusMessage
public String 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
public void setHttpStatusMessage(String message)
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
-
-