Class OnMessageTextCallable
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.events.annotated.CallableMethod
-
- org.eclipse.jetty.websocket.jsr356.annotations.JsrCallable
-
- org.eclipse.jetty.websocket.jsr356.annotations.OnMessageCallable
-
- org.eclipse.jetty.websocket.jsr356.annotations.OnMessageTextCallable
-
public class OnMessageTextCallable extends OnMessageCallable
Callable forOnMessage
annotated methods with a whole or partial text messages.Not for use with
Reader
basedOnMessage
method objects.- See Also:
Decoder.Text
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.websocket.jsr356.annotations.OnMessageCallable
decoder, decodingType, idxMessageObject, idxPartialMessageFlag, messageRoleAssigned, returnEncoder, returnType
-
Fields inherited from class org.eclipse.jetty.websocket.jsr356.annotations.JsrCallable
args, idxConfig, idxSession, params
-
Fields inherited from class org.eclipse.jetty.websocket.common.events.annotated.CallableMethod
method, paramTypes, pojo
-
-
Constructor Summary
Constructors Constructor Description OnMessageTextCallable(java.lang.Class<?> pojo, java.lang.reflect.Method method)
OnMessageTextCallable(OnMessageCallable copy)
Copy Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
call(java.lang.Object endpoint, java.lang.String str, boolean partialFlag)
void
init(JsrSession session)
-
Methods inherited from class org.eclipse.jetty.websocket.jsr356.annotations.OnMessageCallable
assertDecoderRequired, getDecoder, getMessageObjectParam, getReturnEncoder, getReturnType, isMessageRoleAssigned, isPartialMessageSupported, setDecodingType, setPartialMessageFlag
-
Methods inherited from class org.eclipse.jetty.websocket.jsr356.annotations.JsrCallable
assertRoleRequired, findIndexForRole, findParamForRole, getParams
-
Methods inherited from class org.eclipse.jetty.websocket.common.events.annotated.CallableMethod
call, formatMethodCallError, getMethod, getParamTypes, getPojo, toString
-
-
-
-
Constructor Detail
-
OnMessageTextCallable
public OnMessageTextCallable(java.lang.Class<?> pojo, java.lang.reflect.Method method)
-
OnMessageTextCallable
public OnMessageTextCallable(OnMessageCallable copy)
Copy Constructor- Parameters:
copy
- the callable to copy from
-
-
Method Detail
-
call
public java.lang.Object call(java.lang.Object endpoint, java.lang.String str, boolean partialFlag) throws javax.websocket.DecodeException
- Throws:
javax.websocket.DecodeException
-
init
public void init(JsrSession session)
- Overrides:
init
in classOnMessageCallable
-
-