Top Description Fields Constructors Methods
org.glassfish.tyrus.core.frame

public Class BinaryFrame

extends TyrusFrame
Class Inheritance
Imports
org.glassfish.tyrus.core.TyrusWebSocket

Binary frame representation.

Field Summary

Modifier and TypeField and Description
private final boolean

Constructor Summary

AccessConstructor and Description
public
BinaryFrame(Frame
original (binary) frame.
frame
)

Constructor.

public
BinaryFrame(Frame
original (binary) frame.
frame
,
boolean
true when this frame is continuation frame, false otherwise.
continuation
)

Constructor.

public
BinaryFrame(byte[]
frame payload.
payload
,
boolean
true true when this frame is continuation frame, false otherwise.
continuation
,
boolean
true when this frame is last in current partial message batch. Standard (non-continuous) frames have this bit set to true.
fin
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public void
respond(TyrusWebSocket
socket on which the appropriate action will be performed.
socket
)

Implements abstract org.glassfish.tyrus.core.frame.TyrusFrame.respond.

Execution part of frame processing.

Inherited from org.glassfish.tyrus.core.frame.TyrusFrame:
getFrameTypewrap

Field Detail

continuationback to summary
private final boolean continuation

Constructor Detail

BinaryFrameback to summary
public BinaryFrame(Frame frame)

Constructor.

Parameters
frame:Frame

original (binary) frame.

BinaryFrameback to summary
public BinaryFrame(Frame frame, boolean continuation)

Constructor.

Parameters
frame:Frame

original (binary) frame.

continuation:boolean

true when this frame is continuation frame, false otherwise.

BinaryFrameback to summary
public BinaryFrame(byte[] payload, boolean continuation, boolean fin)

Constructor.

Parameters
payload:byte[]

frame payload.

continuation:boolean

true true when this frame is continuation frame, false otherwise.

fin:boolean

true when this frame is last in current partial message batch. Standard (non-continuous) frames have this bit set to true.

Method Detail

respondback to summary
public void respond(TyrusWebSocket socket)

Implements abstract org.glassfish.tyrus.core.frame.TyrusFrame.respond.

Doc from org.glassfish.tyrus.core.frame.TyrusFrame.respond.

Execution part of frame processing.

Parameters
socket:TyrusWebSocket

socket on which the appropriate action will be performed.

Annotations
@Override