Interface HttpInboundServletRewrite

All Superinterfaces:
HttpServletRewrite, InboundRewrite, InboundServletRewrite<HttpServletRequest,HttpServletResponse>, Rewrite, ServletRewrite<HttpServletRequest,HttpServletResponse>

public interface HttpInboundServletRewrite extends InboundServletRewrite<HttpServletRequest,HttpServletResponse>, HttpServletRewrite
Rewrite event for an HttpServletRequest, HttpServletResponse lifecycle.
Author:
Lincoln Baxter, III
  • Method Details

    • redirectTemporary

      void redirectTemporary(String location)
      If the HttpServletResponse is not already committed, issue a Temporary Redirect (302) and call ServletRewrite.abort(). This location must be include HttpServletRewrite.getContextPath() if attempting to redirect within the current ServletContext

      This method commits the response, after which no more information can be written and the response cannot be modified.

    • redirectPermanent

      void redirectPermanent(String location)
      If the HttpServletResponse is not already committed, issue a Permanent Redirect (301) and call ServletRewrite.abort(). This location must be include HttpServletRewrite.getContextPath() if attempting to redirect within the current ServletContext

      This method commits the response, after which no more information can be written and the response cannot be modified.

    • sendStatusCode

      void sendStatusCode(int code)
      If the HttpServletResponse is not already committed, send an HTTP status code, flush the OutputStream buffer, and and call ServletRewrite.abort().

      This method commits the response, after which no more information can be written and the response cannot be modified.

    • sendStatusCode

      void sendStatusCode(int code, String message)
      If the HttpServletResponse is not already committed, send an HTTP status code, flush the OutputStream buffer, and and call ServletRewrite.abort(). Provide the given message to the browser as [text/html].

      This method commits the response, after which no more information can be written and the response cannot be modified.

    • sendErrorCode

      void sendErrorCode(int code)
      If the HttpServletResponse is not already committed, send an HTTP status code and and call ServletRewrite.abort().

      This method commits the response, after which no more information can be written and the response cannot be modified.

    • sendErrorCode

      void sendErrorCode(int code, String message)
      If the HttpServletResponse is not already committed, send an HTTP status code and and call ServletRewrite.abort(). Provide the given message to the browser.

      This method commits the response, after which no more information can be written and the response cannot be modified.