Package | Description |
---|---|
org.glassfish.tyrus.core |
Core classes.
|
org.glassfish.tyrus.core.extension |
WebSocket Extension support.
|
org.glassfish.tyrus.core.frame |
WebSocket frame representations.
|
org.glassfish.tyrus.ext.extension.deflate |
Per-message Deflate Extension.
|
Modifier and Type | Method and Description |
---|---|
Frame |
ProtocolHandler.unframe(ByteBuffer buffer)
TODO!
|
Modifier and Type | Method and Description |
---|---|
Future<Frame> |
ProtocolHandler.close(int code,
String reason) |
Future<Frame> |
ProtocolHandler.send(byte[] data) |
Future<Frame> |
ProtocolHandler.send(String data) |
Future<Frame> |
TyrusWebSocket.sendBinary(byte[] data)
Send a binary frame to the remote endpoint.
|
Future<Frame> |
TyrusWebSocket.sendBinary(byte[] bytes,
boolean last)
Sends a fragment of a complete message.
|
Future<Frame> |
TyrusWebSocket.sendBinary(byte[] bytes,
int off,
int len,
boolean last)
Sends a fragment of a complete message.
|
Future<Frame> |
TyrusWebSocket.sendPing(byte[] data)
Sends a
ping frame with the specified payload (if any). |
Future<Frame> |
TyrusWebSocket.sendPong(byte[] data)
Sends a
ping frame with the specified payload (if any). |
Future<Frame> |
ProtocolHandler.sendRawFrame(ByteBuffer data)
Raw frame is always whole (not partial).
|
Future<Frame> |
TyrusWebSocket.sendRawFrame(ByteBuffer data)
Send a frame to the remote endpoint.
|
Future<Frame> |
TyrusWebSocket.sendText(String data)
Send a text frame to the remote endpoint.
|
Future<Frame> |
TyrusWebSocket.sendText(String fragment,
boolean last)
Sends a fragment of a complete message.
|
Future<Frame> |
ProtocolHandler.stream(boolean last,
byte[] bytes,
int off,
int len) |
Future<Frame> |
ProtocolHandler.stream(boolean last,
String fragment) |
Modifier and Type | Method and Description |
---|---|
void |
ProtocolHandler.process(Frame frame,
TyrusWebSocket socket)
TODO.
|
Modifier and Type | Method and Description |
---|---|
Frame |
ExtendedExtension.processIncoming(ExtendedExtension.ExtensionContext context,
Frame frame)
Process incoming frame.
|
Frame |
ExtendedExtension.processOutgoing(ExtendedExtension.ExtensionContext context,
Frame frame)
Process outgoing frame.
|
Modifier and Type | Method and Description |
---|---|
Frame |
ExtendedExtension.processIncoming(ExtendedExtension.ExtensionContext context,
Frame frame)
Process incoming frame.
|
Frame |
ExtendedExtension.processOutgoing(ExtendedExtension.ExtensionContext context,
Frame frame)
Process outgoing frame.
|
Modifier and Type | Class and Description |
---|---|
class |
BinaryFrame
Binary frame representation.
|
class |
CloseFrame
Close frame representation.
|
class |
PingFrame
Ping frame representation.
|
class |
PongFrame
Pong frame representation.
|
class |
TextFrame
Text frame representation.
|
class |
TyrusFrame
Frame representation used in Tyrus runtime.
|
Modifier and Type | Method and Description |
---|---|
Frame |
Frame.Builder.build()
Build new frame.
|
Modifier and Type | Method and Description |
---|---|
static Frame.Builder |
Frame.builder(Frame frame)
Create new
Frame.Builder based on provided frame. |
static TyrusFrame |
TyrusFrame.wrap(Frame frame,
byte inFragmentedType,
ByteBuffer remainder)
TyrusFrame factory method. |
Constructor and Description |
---|
BinaryFrame(Frame frame)
Constructor.
|
BinaryFrame(Frame frame,
boolean continuation)
Constructor.
|
Builder(Frame frame)
Constructor.
|
CloseFrame(Frame frame)
Constructor.
|
Frame(Frame frame)
Copy constructor.
|
PingFrame(Frame frame)
Constructor.
|
PongFrame(Frame frame)
Constructor.
|
TextFrame(Frame frame,
ByteBuffer remainder)
Constructor.
|
TextFrame(Frame frame,
ByteBuffer remainder,
boolean continuation)
Constructor.
|
TyrusFrame(Frame frame,
TyrusFrame.FrameType frameType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Frame |
PerMessageDeflateExtension.processIncoming(ExtendedExtension.ExtensionContext context,
Frame frame) |
Frame |
PerMessageDeflateExtension.processOutgoing(ExtendedExtension.ExtensionContext context,
Frame frame) |
Modifier and Type | Method and Description |
---|---|
Frame |
PerMessageDeflateExtension.processIncoming(ExtendedExtension.ExtensionContext context,
Frame frame) |
Frame |
PerMessageDeflateExtension.processOutgoing(ExtendedExtension.ExtensionContext context,
Frame frame) |
Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.