Class CloseFrame
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.WebSocketFrame
-
- org.eclipse.jetty.websocket.common.frames.ControlFrame
-
- org.eclipse.jetty.websocket.common.frames.CloseFrame
-
- All Implemented Interfaces:
Frame
@Deprecated(since="2021-05-27") public class CloseFrame extends ControlFrame
Deprecated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.api.extensions.Frame
Frame.Type
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.websocket.common.frames.ControlFrame
MAX_CONTROL_PAYLOAD
-
-
Constructor Summary
Constructors Constructor Description CloseFrame()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Frame.Type
getType()
Deprecated.static java.lang.String
truncate(java.lang.String reason)
Deprecated.Truncate arbitrary reason into something that will fit into the CloseFrame limits.-
Methods inherited from class org.eclipse.jetty.websocket.common.frames.ControlFrame
assertValid, equals, getPayload, isControlFrame, isDataFrame, setPayload
-
-
-
-
Method Detail
-
getType
public Frame.Type getType()
Deprecated.- Specified by:
getType
in interfaceFrame
- Overrides:
getType
in classWebSocketFrame
-
truncate
public static java.lang.String truncate(java.lang.String reason)
Deprecated.Truncate arbitrary reason into something that will fit into the CloseFrame limits.- Parameters:
reason
- the arbitrary reason to possibly truncate.- Returns:
- the possibly truncated reason string.
-
-