Package org.glassfish.tyrus.core.frame
Class CloseFrame
- java.lang.Object
-
- org.glassfish.tyrus.core.frame.Frame
-
- org.glassfish.tyrus.core.frame.TyrusFrame
-
- org.glassfish.tyrus.core.frame.CloseFrame
-
public class CloseFrame extends TyrusFrame
Close frame representation.- Author:
- Pavel Bucek
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.tyrus.core.frame.TyrusFrame
TyrusFrame.FrameType
-
Nested classes/interfaces inherited from class org.glassfish.tyrus.core.frame.Frame
Frame.Builder
-
-
Constructor Summary
Constructors Constructor Description CloseFrame(CloseReason closeReason)
Constructor.CloseFrame(Frame frame)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseReason
getCloseReason()
Get close reason.void
respond(TyrusWebSocket socket)
Execution part of frame processing.-
Methods inherited from class org.glassfish.tyrus.core.frame.TyrusFrame
getFrameType, wrap
-
Methods inherited from class org.glassfish.tyrus.core.frame.Frame
builder, builder, getMaskingKey, getOpcode, getPayloadData, getPayloadLength, isControlFrame, isFin, isMask, isRsv1, isRsv2, isRsv3, toString
-
-
-
-
Constructor Detail
-
CloseFrame
public CloseFrame(Frame frame)
Constructor.- Parameters:
frame
- original (close) frame.
-
CloseFrame
public CloseFrame(CloseReason closeReason)
Constructor.- Parameters:
closeReason
- close reason used to construct close frame.
-
-
Method Detail
-
getCloseReason
public CloseReason getCloseReason()
Get close reason.- Returns:
- close reason.
-
respond
public void respond(TyrusWebSocket socket)
Description copied from class:TyrusFrame
Execution part of frame processing.- Specified by:
respond
in classTyrusFrame
- Parameters:
socket
- socket on which the appropriate action will be performed.
-
-