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
public class OnMessageCallable extends JsrCallable
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.websocket.Decoder
decoder
protected java.lang.Class<?>
decodingType
protected int
idxMessageObject
protected int
idxPartialMessageFlag
protected boolean
messageRoleAssigned
protected javax.websocket.Encoder
returnEncoder
protected java.lang.Class<?>
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 OnMessageCallable(java.lang.Class<?> pojo, java.lang.reflect.Method method)
OnMessageCallable(OnMessageCallable copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertDecoderRequired()
javax.websocket.Decoder
getDecoder()
Param
getMessageObjectParam()
javax.websocket.Encoder
getReturnEncoder()
java.lang.Class<?>
getReturnType()
void
init(JsrSession session)
boolean
isMessageRoleAssigned()
boolean
isPartialMessageSupported()
void
setDecodingType(java.lang.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 Detail
-
returnType
protected final java.lang.Class<?> returnType
-
returnEncoder
protected javax.websocket.Encoder returnEncoder
-
decodingType
protected java.lang.Class<?> decodingType
-
decoder
protected javax.websocket.Decoder decoder
-
idxPartialMessageFlag
protected int idxPartialMessageFlag
-
idxMessageObject
protected int idxMessageObject
-
messageRoleAssigned
protected boolean messageRoleAssigned
-
-
Constructor Detail
-
OnMessageCallable
public OnMessageCallable(java.lang.Class<?> pojo, java.lang.reflect.Method method)
-
OnMessageCallable
public OnMessageCallable(OnMessageCallable copy)
-
-
Method Detail
-
assertDecoderRequired
protected void assertDecoderRequired()
-
getDecoder
public javax.websocket.Decoder getDecoder()
-
getMessageObjectParam
public Param getMessageObjectParam()
-
getReturnEncoder
public javax.websocket.Encoder getReturnEncoder()
-
getReturnType
public java.lang.Class<?> getReturnType()
-
init
public void init(JsrSession session)
- Overrides:
init
in classJsrCallable
-
isMessageRoleAssigned
public boolean isMessageRoleAssigned()
-
isPartialMessageSupported
public boolean isPartialMessageSupported()
-
setDecodingType
public void setDecodingType(java.lang.Class<?> decodingType)
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
public void setPartialMessageFlag(Param param)
-
-