@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(java.io.InputStream is)
Deprecated.
This method is called when there is a binary WebSocket message available
to process.
|
protected abstract void |
onBinaryMessage(java.nio.ByteBuffer message)
Deprecated.
This method is called when there is a binary WebSocket message available
to process.
|
protected void |
onTextData(java.io.Reader r)
Deprecated.
This method is called when there is a textual WebSocket message available
to process.
|
protected abstract void |
onTextMessage(java.nio.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(java.io.InputStream is) throws java.io.IOException
StreamInbound
onBinaryData
in class StreamInbound
is
- The WebSocket messagejava.io.IOException
- If a problem occurs processing the message. Any
exception will trigger the closing of the WebSocket
connection.protected final void onTextData(java.io.Reader r) throws java.io.IOException
StreamInbound
onTextData
in class StreamInbound
r
- The WebSocket messagejava.io.IOException
- 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(java.nio.ByteBuffer message) throws java.io.IOException
message
- The WebSocket messagejava.io.IOException
- If a problem occurs processing the message. Any
exception will trigger the closing of the WebSocket
connection.protected abstract void onTextMessage(java.nio.CharBuffer message) throws java.io.IOException
message
- The WebSocket messagejava.io.IOException
- If a problem occurs processing the message. Any
exception will trigger the closing of the WebSocket
connection.Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.