Class HttpServletRequestArgs

java.lang.Object
org.apache.juneau.rest.arg.SimpleRestOperationArg
org.apache.juneau.rest.arg.HttpServletRequestArgs
All Implemented Interfaces:
RestOpArg

Resolves method parameters on RestOp-annotated Java methods of types found on the HttpServletRequest object.
  • AsyncContext
  • Cookie[]
  • DispatcherType
  • HttpServletRequest
  • Principal
See Also:
  • Constructor Details

    • HttpServletRequestArgs

      protected HttpServletRequestArgs(ThrowingFunction<jakarta.servlet.http.HttpServletRequest,T> function)
      Constructor.
      Type Parameters:
      T - The function return type.
      Parameters:
      function - The function for finding the arg.
  • Method Details

    • create

      public static HttpServletRequestArgs create(ParamInfo paramInfo)
      Static creator.
      Parameters:
      paramInfo - The Java method parameter being resolved.
      Returns:
      A new arg, or null if the parameter type is not one of the supported types.