public class OnMessageTextCallable extends OnMessageCallable
OnMessage
annotated methods with a whole or partial text messages.
Not for use with Reader
based OnMessage
method objects.
Decoder.Text
Modifier and Type | Field and Description |
---|---|
private javax.websocket.Decoder.Text<?> |
textDecoder |
decoder, decodingType, idxMessageObject, idxPartialMessageFlag, messageRoleAssigned, returnEncoder, returnType
args, idxConfig, idxSession, params
method, paramTypes, pojo
Constructor and Description |
---|
OnMessageTextCallable(java.lang.Class<?> pojo,
java.lang.reflect.Method method) |
OnMessageTextCallable(OnMessageCallable copy)
Copy Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call(java.lang.Object endpoint,
java.lang.String str,
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 OnMessageTextCallable(java.lang.Class<?> pojo, java.lang.reflect.Method method)
public OnMessageTextCallable(OnMessageCallable copy)
copy
- the callable to copy frompublic java.lang.Object call(java.lang.Object endpoint, java.lang.String str, boolean partialFlag) throws javax.websocket.DecodeException
javax.websocket.DecodeException
public void init(JsrSession session)
init
in class OnMessageCallable