@Deprecated public abstract class MessageInbound extends StreamInbound
StreamInbound
.Constructor and Description |
---|
MessageInbound()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getByteBufferMaxSize()
Deprecated.
Obtain the current maximum size (in bytes) of the buffer used for binary
messages.
|
int |
getCharBufferMaxSize()
Deprecated.
Obtain the current maximum size (in characters) of the buffer used for
binary messages.
|
protected void |
onBinaryData(InputStream is)
Deprecated.
This method is called when there is a binary WebSocket message available
to process.
|
protected abstract void |
onBinaryMessage(ByteBuffer message)
Deprecated.
This method is called when there is a binary WebSocket message available
to process.
|
protected void |
onTextData(Reader r)
Deprecated.
This method is called when there is a textual WebSocket message available
to process.
|
protected abstract void |
onTextMessage(CharBuffer message)
Deprecated.
This method is called when there is a textual WebSocket message available
to process.
|
void |
setByteBufferMaxSize(int byteBufferMaxSize)
Deprecated.
Set the maximum size (in bytes) of the buffer used for binary messages.
|
void |
setCharBufferMaxSize(int charBufferMaxSize)
Deprecated.
Set the maximum size (in characters) of the buffer used for textual
messages.
|
getOutboundByteBufferSize, getOutboundCharBufferSize, getReadTimeout, getWsOutbound, onClose, onData, onOpen, onPong, onUpgradeComplete, setOutboundByteBufferSize, setOutboundCharBufferSize, setUpgradeOutbound, setUpgradeProcessor
protected final void onBinaryData(InputStream is) throws IOException
StreamInbound
onBinaryData
in class StreamInbound
is
- The WebSocket messageIOException
- If a problem occurs processing the message. Any
exception will trigger the closing of the WebSocket
connection.protected final void onTextData(Reader r) throws IOException
StreamInbound
onTextData
in class StreamInbound
r
- The WebSocket messageIOException
- If a problem occurs processing the message. Any
exception will trigger the closing of the WebSocket
connection.public final int getByteBufferMaxSize()
public final void setByteBufferMaxSize(int byteBufferMaxSize)
public final int getCharBufferMaxSize()
public final void setCharBufferMaxSize(int charBufferMaxSize)
protected abstract void onBinaryMessage(ByteBuffer message) throws IOException
message
- The WebSocket messageIOException
- If a problem occurs processing the message. Any
exception will trigger the closing of the WebSocket
connection.protected abstract void onTextMessage(CharBuffer message) throws IOException
message
- The WebSocket messageIOException
- If a problem occurs processing the message. Any
exception will trigger the closing of the WebSocket
connection.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.