| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | echoFrame(final WebSocketChannel channel, final StreamSourceFrameChannel ws)
Echo back the frame to the sender |
| public static ByteBuffer | Returns: buffer TheByteBuffer which was createdThe utfString)String to convertCreate a |
| public static <I extends StreamSourceChannel, O extends StreamSinkChannel> void | initiateTransfer(final I
the source channel source, final O the target channel sink, final ChannelListener<? super I> the source listener to set and call when the transfer is complete, or sourceListener, final ChannelListener<? super O> null to clear the listener at that timethe target listener to set and call when the transfer is complete, or sinkListener, final ChannelExceptionHandler<? super I> null to clear the listener at that timethe read exception handler to call if an error occurs during a read operation readExceptionHandler, final ChannelExceptionHandler<? super O> the write exception handler to call if an error occurs during a write operation writeExceptionHandler, ByteBufferPool the pool from which the transfer buffer should be allocated pool)
Deprecated
Initiate a low-copy transfer between two stream channels. |
| public static String | |
| public static String | |
| public static long | transfer(final ReadableByteChannel source, final long count, final ByteBuffer throughBuffer, final WritableByteChannel sink)
Transfer the data from the source to the sink using the given through buffer to pass data through. |
| EMPTY | back to summary |
|---|---|
| private static final String EMPTY | |
| WebSocketUtils | back to summary |
|---|---|
| private WebSocketUtils() | |
| echoFrame | back to summary |
|---|---|
| public static void echoFrame(final WebSocketChannel channel, final StreamSourceFrameChannel ws) throws IOException Echo back the frame to the sender | |
| fromUtf8String | back to summary |
|---|---|
| public static ByteBuffer fromUtf8String(CharSequence utfString) Create a
| |
| initiateTransfer | back to summary |
|---|---|
| public static <I extends StreamSourceChannel, O extends StreamSinkChannel> void initiateTransfer(final I source, final O sink, final ChannelListener<? super I> sourceListener, final ChannelListener<? super O> sinkListener, final ChannelExceptionHandler<? super I> readExceptionHandler, final ChannelExceptionHandler<? super O> writeExceptionHandler, ByteBufferPool pool)
Deprecated
Initiate a low-copy transfer between two stream channels. The pool should be a direct buffer pool for best performance.
| |
| toUtf8String | back to summary |
|---|---|
| public static String toUtf8String(ByteBuffer buffer) | |
| toUtf8String | back to summary |
|---|---|
| public static String toUtf8String(ByteBuffer... buffers) | |
| transfer | back to summary |
|---|---|
| public static long transfer(final ReadableByteChannel source, final long count, final ByteBuffer throughBuffer, final WritableByteChannel sink) throws IOException Transfer the data from the source to the sink using the given through buffer to pass data through. | |