Class JsrCallable
java.lang.Object
org.eclipse.jetty.websocket.common.events.annotated.CallableMethod
org.eclipse.jetty.websocket.jsr356.annotations.JsrCallable
- Direct Known Subclasses:
OnCloseCallable, OnErrorCallable, OnMessageCallable, OnOpenCallable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Object[]protected intprotected intprotected final Param[]Fields inherited from class CallableMethod
method, paramTypes, pojo -
Constructor Summary
ConstructorsConstructorDescriptionJsrCallable(Class<?> pojo, Method method) JsrCallable(JsrCallable copy) Copy Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertRoleRequired(int index, String description) protected intfindIndexForRole(Param.Role role) Search the list of parameters for first one matching the role specified.protected ParamfindParamForRole(Param.Role role) Find first param for specified role.Param[]voidinit(JsrSession session) abstract voidsetDecodingType(Class<?> decodingType) The Type of Class aDecodershould be created to produce.Methods inherited from class CallableMethod
call, formatMethodCallError, getMethod, getParamTypes, getPojo, toString
-
Field Details
-
params
-
args
-
idxSession
protected int idxSession -
idxConfig
protected int idxConfig
-
-
Constructor Details
-
JsrCallable
-
JsrCallable
Copy Constructor- Parameters:
copy- the JsrCallable to copy from
-
-
Method Details
-
assertRoleRequired
-
findIndexForRole
Search the list of parameters for first one matching the role specified.- Parameters:
role- the role to look for- Returns:
- the index for the role specified (or -1 if not found)
-
findParamForRole
Find first param for specified role.- Parameters:
role- the role specified- Returns:
- the param (or null if not found)
-
getParams
-
init
-
setDecodingType
The Type of Class aDecodershould be created to produce.- Parameters:
decodingType- the type of class a Decoder should be created to produce
-