Class OnCloseCallable
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.events.annotated.CallableMethod
-
- org.eclipse.jetty.websocket.jsr356.annotations.JsrCallable
-
- org.eclipse.jetty.websocket.jsr356.annotations.OnCloseCallable
-
public class OnCloseCallable extends JsrCallable
Callable forOnClose
annotated methods
-
-
Field Summary
-
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 OnCloseCallable(java.lang.Class<?> pojo, java.lang.reflect.Method method)
OnCloseCallable(OnCloseCallable copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
call(java.lang.Object endpoint, int statusCode, java.lang.String reason)
void
call(java.lang.Object endpoint, javax.websocket.CloseReason closeReason)
void
call(java.lang.Object endpoint, CloseInfo close)
void
init(JsrSession session)
void
setDecodingType(java.lang.Class<?> decodingType)
The Type of Class aDecoder
should be created to produce.-
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
-
-
-
-
Constructor Detail
-
OnCloseCallable
public OnCloseCallable(java.lang.Class<?> pojo, java.lang.reflect.Method method)
-
OnCloseCallable
public OnCloseCallable(OnCloseCallable copy)
-
-
Method Detail
-
call
public void call(java.lang.Object endpoint, CloseInfo close)
-
call
public void call(java.lang.Object endpoint, javax.websocket.CloseReason closeReason)
-
call
public void call(java.lang.Object endpoint, int statusCode, java.lang.String reason)
-
init
public void init(JsrSession session)
- Overrides:
init
in classJsrCallable
-
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
-
-