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 short
getHttpStatus()
Get the http status codeString
getHttpStatusMessage()
Get the http status messagevoid
setHttpStatus(short status)
Setter for the http status codevoid
setHttpStatusMessage(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: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
public void setHttpStatusMessage(String message)
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
-
-