Class OnMessageCallable
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
- Direct Known Subclasses:
OnMessageBinaryCallable
,OnMessageBinaryStreamCallable
,OnMessagePongCallable
,OnMessageTextCallable
,OnMessageTextStreamCallable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.websocket.Decoder
protected Class
<?> protected int
protected int
protected boolean
protected javax.websocket.Encoder
protected final Class
<?> 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
private int
javax.websocket.Decoder
javax.websocket.Encoder
Class
<?> void
init
(JsrSession session) boolean
boolean
void
setDecodingType
(Class<?> decodingType) The Type of Class aDecoder
should be created to produce.void
setPartialMessageFlag
(Param param) 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
-
Field Details
-
returnType
-
returnEncoder
protected javax.websocket.Encoder returnEncoder -
decodingType
-
decoder
protected javax.websocket.Decoder decoder -
idxPartialMessageFlag
protected int idxPartialMessageFlag -
idxMessageObject
protected int idxMessageObject -
messageRoleAssigned
protected boolean messageRoleAssigned
-
-
Constructor Details
-
OnMessageCallable
-
OnMessageCallable
-
-
Method Details
-
assertDecoderRequired
protected void assertDecoderRequired() -
findMessageObjectIndex
private int findMessageObjectIndex() -
getDecoder
public javax.websocket.Decoder getDecoder() -
getMessageObjectParam
-
getReturnEncoder
public javax.websocket.Encoder getReturnEncoder() -
getReturnType
-
init
- Overrides:
init
in classJsrCallable
-
isMessageRoleAssigned
public boolean isMessageRoleAssigned() -
isPartialMessageSupported
public boolean isPartialMessageSupported() -
setDecodingType
Description copied from class:JsrCallable
The Type of Class aDecoder
should be created to produce.- Specified by:
setDecodingType
in classJsrCallable
- Parameters:
decodingType
- the type of class a Decoder should be created to produce
-
setPartialMessageFlag
-