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 CallableMethod
  • Field Details

    • params

      protected final Param[] params
    • args

      protected final Object[] args
    • idxSession

      protected int idxSession
    • idxConfig

      protected int idxConfig
  • Constructor Details

    • JsrCallable

      public JsrCallable(Class<?> pojo, Method method)
    • JsrCallable

      public JsrCallable(JsrCallable copy)
      Copy Constructor
      Parameters:
      copy - the JsrCallable to copy from
  • Method Details

    • 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)
    • setDecodingType

      public abstract void setDecodingType(Class<?> decodingType)
      The Type of Class a Decoder should be created to produce.
      Parameters:
      decodingType - the type of class a Decoder should be created to produce