Class AbstractRequestAdapter

    • Field Detail

      • adaptee

        protected final java.lang.Object adaptee
    • Constructor Detail

      • AbstractRequestAdapter

        public AbstractRequestAdapter​(MethodType requestMethod,
                                      java.lang.Object adaptee)
        Instantiates a new AbstractRequestAdapter.
        Parameters:
        requestMethod - the request method
        adaptee - the adaptee object
    • Method Detail

      • getAdaptee

        public <T> T getAdaptee()
        Description copied from interface: RequestAdapter
        Returns the adaptee object to provide request information.
        Specified by:
        getAdaptee in interface RequestAdapter
        Type Parameters:
        T - the type of the adaptee object
        Returns:
        the adaptee object
      • getRequestScope

        public RequestScope getRequestScope​(boolean create)
        Description copied from interface: RequestAdapter
        Gets the request scope.
        Specified by:
        getRequestScope in interface RequestAdapter
        Parameters:
        create - true to create a new request scope for this request if necessary; false to return null
        Returns:
        the request scope