public class OnMessageBinaryCallable extends OnMessageCallable
OnMessage
annotated methods with a whole or partial binary messages.
Not for use with InputStream
based OnMessage
method objects.
Decoder.Binary
Modifier and Type | Field and Description |
---|---|
private javax.websocket.Decoder.Binary<?> |
binaryDecoder |
decoder, decodingType, idxMessageObject, idxPartialMessageFlag, messageRoleAssigned, returnEncoder, returnType
args, idxConfig, idxSession, params
method, paramTypes, pojo
Constructor and Description |
---|
OnMessageBinaryCallable(java.lang.Class<?> pojo,
java.lang.reflect.Method method) |
OnMessageBinaryCallable(OnMessageCallable copy)
Copy Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call(java.lang.Object endpoint,
java.nio.ByteBuffer buf,
boolean partialFlag) |
void |
init(JsrSession session) |
assertDecoderRequired, getDecoder, getMessageObjectParam, getReturnEncoder, getReturnType, isMessageRoleAssigned, isPartialMessageSupported, setDecodingType, setPartialMessageFlag
assertRoleRequired, findIndexForRole, findParamForRole, getParams
call, formatMethodCallError, getMethod, getParamTypes, getPojo, toString
public OnMessageBinaryCallable(java.lang.Class<?> pojo, java.lang.reflect.Method method)
public OnMessageBinaryCallable(OnMessageCallable copy)
copy
- the callable to copypublic java.lang.Object call(java.lang.Object endpoint, java.nio.ByteBuffer buf, boolean partialFlag) throws javax.websocket.DecodeException
javax.websocket.DecodeException
public void init(JsrSession session)
init
in class OnMessageCallable