Interface Request.ServeAs

All Superinterfaces:
Attributes, Content.Source, Request
All Known Implementing Classes:
ServletContextRequest
Enclosing interface:
Request

public static interface Request.ServeAs extends Request
This interface will be detected by the wrap(Request, HttpURI) static method to wrap the request changing its target to a given path. If a Request implements this interface it can be obtained with the Request.as(Request, Class) method.
See Also:
  • Method Details

    • wrap

      Request wrap(Request request, HttpURI uri)
      Wraps a request but changes the uri so that it can be served to a different target.
      Parameters:
      request - the original request.
      uri - the uri of the new target.
      Returns:
      the request wrapped to the new target.