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
public abstract class JsrCallable extends org.eclipse.jetty.websocket.common.events.annotated.CallableMethod
-
-
Constructor Summary
Constructors Constructor Description JsrCallable(Class<?> pojo, Method method)JsrCallable(JsrCallable copy)Copy Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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[]getParams()voidinit(JsrSession session)abstract voidsetDecodingType(Class<?> decodingType)The Type of Class aDecodershould be created to produce.
-
-
-
Constructor Detail
-
JsrCallable
public JsrCallable(JsrCallable copy)
Copy Constructor- Parameters:
copy- the JsrCallable to copy from
-
-
Method Detail
-
assertRoleRequired
protected void assertRoleRequired(int index, String description)
-
findIndexForRole
protected int findIndexForRole(Param.Role role)
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
protected Param findParamForRole(Param.Role role)
Find first param for specified role.- Parameters:
role- the role specified- Returns:
- the param (or null if not found)
-
getParams
public Param[] getParams()
-
init
public void init(JsrSession session)
-
-