Class CloseInfo
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.CloseInfo
-
@Deprecated(since="2021-05-27") public class CloseInfo extends java.lang.Object
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description CloseInfo()
Deprecated.CloseInfo(int statusCode)
Deprecated.CloseInfo(int statusCode, java.lang.String reason)
Deprecated.Create a CloseInfo, trimming the reason toCloseStatus.MAX_REASON_PHRASE
UTF-8 bytes if needed.CloseInfo(java.nio.ByteBuffer payload, boolean validate)
Deprecated.Parse the Close Frame payload.CloseInfo(Frame frame)
Deprecated.CloseInfo(Frame frame, boolean validate)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CloseFrame
asFrame()
Deprecated.java.lang.String
getReason()
Deprecated.int
getStatusCode()
Deprecated.boolean
isAbnormal()
Deprecated.boolean
isHarsh()
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
CloseInfo
public CloseInfo()
Deprecated.
-
CloseInfo
public CloseInfo(java.nio.ByteBuffer payload, boolean validate)
Deprecated.Parse the Close Frame payload.- Parameters:
payload
- the raw close frame payload.validate
- true if payload should be validated per WebSocket spec.
-
CloseInfo
public CloseInfo(Frame frame)
Deprecated.
-
CloseInfo
public CloseInfo(Frame frame, boolean validate)
Deprecated.
-
CloseInfo
public CloseInfo(int statusCode)
Deprecated.
-
CloseInfo
public CloseInfo(int statusCode, java.lang.String reason)
Deprecated.Create a CloseInfo, trimming the reason toCloseStatus.MAX_REASON_PHRASE
UTF-8 bytes if needed.- Parameters:
statusCode
- the status codereason
- the raw reason code
-
-
Method Detail
-
asFrame
public CloseFrame asFrame()
Deprecated.
-
getReason
public java.lang.String getReason()
Deprecated.
-
getStatusCode
public int getStatusCode()
Deprecated.
-
isHarsh
public boolean isHarsh()
Deprecated.
-
isAbnormal
public boolean isAbnormal()
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-