Class OnCloseCallable


  • public class OnCloseCallable
    extends JsrCallable
    Callable for OnClose annotated methods
    • Field Summary

      • Fields inherited from class org.eclipse.jetty.websocket.common.events.annotated.CallableMethod

        method, paramTypes, pojo
    • 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, org.eclipse.jetty.websocket.common.CloseInfo close)  
      void init​(JsrSession session)  
      void setDecodingType​(java.lang.Class<?> decodingType)
      The Type of Class a Decoder should be created to produce.
      • Methods inherited from class org.eclipse.jetty.websocket.common.events.annotated.CallableMethod

        call, formatMethodCallError, getMethod, getParamTypes, getPojo, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OnCloseCallable

        public OnCloseCallable​(java.lang.Class<?> pojo,
                               java.lang.reflect.Method method)
    • Method Detail

      • call

        public void call​(java.lang.Object endpoint,
                         org.eclipse.jetty.websocket.common.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)
      • setDecodingType

        public void setDecodingType​(java.lang.Class<?> decodingType)
        Description copied from class: JsrCallable
        The Type of Class a Decoder should be created to produce.
        Specified by:
        setDecodingType in class JsrCallable
        Parameters:
        decodingType - the type of class a Decoder should be created to produce