Class AbstractRequestAdapter

java.lang.Object
com.aspectran.core.activity.request.AbstractRequest
com.aspectran.core.adapter.AbstractRequestAdapter
All Implemented Interfaces:
RequestAdapter
Direct Known Subclasses:
AbstractWebRequestAdapter, DefaultRequestAdapter

public abstract class AbstractRequestAdapter extends AbstractRequest implements RequestAdapter
The Class AbstractRequestAdapter.
Since:
2011. 3. 13.
  • Field Details

    • adaptee

      protected final Object adaptee
  • Constructor Details

    • AbstractRequestAdapter

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

    • 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
    • hasRequestScope

      public boolean hasRequestScope()
      Description copied from interface: RequestAdapter
      Returns whether the request scope exists in this request.
      Specified by:
      hasRequestScope in interface RequestAdapter
      Returns:
      true if request scope exists, false otherwise
    • getRequestScope

      @NonNull public RequestScope getRequestScope()
      Description copied from interface: RequestAdapter
      Returns the request scope in this request. If the request scope does not exist, it is created.
      Specified by:
      getRequestScope in interface RequestAdapter
      Returns:
      the request scope
    • getPrincipal

      public Principal getPrincipal()
      Specified by:
      getPrincipal in interface RequestAdapter