Package | Description |
---|---|
org.glassfish.tyrus.core |
Core classes.
|
org.glassfish.tyrus.core.extension |
WebSocket Extension support.
|
org.glassfish.tyrus.core.frame |
WebSocket frame representations.
|
Modifier and Type | Method and Description |
---|---|
Frame |
ProtocolHandler.unframe(java.nio.ByteBuffer buffer)
TODO!
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<Frame> |
ProtocolHandler.close(int code,
java.lang.String reason) |
java.util.concurrent.Future<Frame> |
ProtocolHandler.send(byte[] data)
Deprecated.
|
java.util.concurrent.Future<Frame> |
ProtocolHandler.send(byte[] data,
WriterInfo writerInfo) |
java.util.concurrent.Future<Frame> |
ProtocolHandler.send(java.lang.String data)
Deprecated.
|
java.util.concurrent.Future<Frame> |
ProtocolHandler.send(java.lang.String data,
WriterInfo writerInfo) |
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendBinary(byte[] data)
Deprecated.
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendBinary(byte[] bytes,
boolean last)
Deprecated.
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendBinary(byte[] bytes,
boolean last,
WriterInfo writerInfo)
Sends a fragment of a complete message.
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendBinary(byte[] bytes,
int off,
int len,
boolean last)
Deprecated.
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendBinary(byte[] bytes,
int off,
int len,
boolean last,
WriterInfo writerInfo)
Sends a fragment of a complete message.
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendBinary(byte[] data,
WriterInfo writerInfo)
Send a binary frame to the remote endpoint.
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendPing(byte[] data)
Sends a
ping frame with the specified payload (if any). |
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendPong(byte[] data)
Sends a
ping frame with the specified payload (if any). |
java.util.concurrent.Future<Frame> |
ProtocolHandler.sendRawFrame(java.nio.ByteBuffer data)
Raw frame is always whole (not partial).
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendRawFrame(java.nio.ByteBuffer data)
Send a frame to the remote endpoint.
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendText(java.lang.String data)
Deprecated.
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendText(java.lang.String fragment,
boolean last)
Deprecated.
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendText(java.lang.String fragment,
boolean last,
WriterInfo writerInfo)
Sends a fragment of a complete message.
|
java.util.concurrent.Future<Frame> |
TyrusWebSocket.sendText(java.lang.String data,
WriterInfo writerInfo)
Send a text frame to the remote endpoint.
|
java.util.concurrent.Future<Frame> |
ProtocolHandler.stream(boolean last,
byte[] bytes,
int off,
int len)
Deprecated.
|
java.util.concurrent.Future<Frame> |
ProtocolHandler.stream(boolean last,
byte[] bytes,
int off,
int len,
WriterInfo writerInfo) |
java.util.concurrent.Future<Frame> |
ProtocolHandler.stream(boolean last,
java.lang.String fragment)
Deprecated.
|
java.util.concurrent.Future<Frame> |
ProtocolHandler.stream(boolean last,
java.lang.String fragment,
WriterInfo writerInfo) |
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,
java.nio.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,
java.nio.ByteBuffer remainder)
Constructor.
|
TextFrame(Frame frame,
java.nio.ByteBuffer remainder,
boolean continuation)
Constructor.
|
TyrusFrame(Frame frame,
TyrusFrame.FrameType frameType)
Constructor.
|
Copyright © 2012–2020 Oracle Corporation. All rights reserved.