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
-
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
Fields inherited from class org.eclipse.jetty.websocket.common.WebSocketFrame
data, finRsvOp, mask, masked
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jetty.websocket.common.frames.ControlFrame
assertValid, equals, getPayload, isControlFrame, isDataFrame, setPayload
Methods inherited from class org.eclipse.jetty.websocket.common.WebSocketFrame
copy, copyHeaders, copyHeaders, getMask, getOpCode, getPayloadAsUTF8, getPayloadLength, hashCode, hasPayload, isFin, isLast, isMasked, isRsv1, isRsv2, isRsv3, reset, setFin, setMask, setMasked, setOpCode, setRsv1, setRsv2, setRsv3, toString
-
Constructor Details
-
CloseFrame
public CloseFrame()
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceFrame
- Overrides:
getType
in classWebSocketFrame
-
truncate
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.
-