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 int
protected int
protected final Param[]
Fields inherited from class org.eclipse.jetty.websocket.common.events.annotated.CallableMethod
method, paramTypes, pojo
-
Constructor Summary
ConstructorsConstructorDescriptionJsrCallable
(Class<?> pojo, Method method) JsrCallable
(JsrCallable copy) Copy Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertRoleRequired
(int index, String description) protected int
findIndexForRole
(Param.Role role) Search the list of parameters for first one matching the role specified.protected Param
findParamForRole
(Param.Role role) Find first param for specified role.Param[]
void
init
(JsrSession session) abstract void
setDecodingType
(Class<?> decodingType) The Type of Class aDecoder
should be created to produce.Methods inherited from class org.eclipse.jetty.websocket.common.events.annotated.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 aDecoder
should be created to produce.- Parameters:
decodingType
- the type of class a Decoder should be created to produce
-