Package org.glassfish.tyrus.core.frame
Class PingFrame
- java.lang.Object
-
- org.glassfish.tyrus.core.frame.Frame
-
- org.glassfish.tyrus.core.frame.TyrusFrame
-
- org.glassfish.tyrus.core.frame.PingFrame
-
public class PingFrame extends TyrusFrame
Ping frame representation.
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
PingFrame
public PingFrame(Frame frame)
Constructor.- Parameters:
frame
- original (ping) frame.
-
PingFrame
public PingFrame(byte[] payload)
Constructor.- Parameters:
payload
- ping frame payload.
-
-
Method Detail
-
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.
-
-