public interface HttpInboundServletRewrite extends InboundServletRewrite<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>, HttpServletRewrite
HttpServletRequest, HttpServletResponse lifecycle.| Modifier and Type | Method and Description |
|---|---|
void |
redirectPermanent(String location)
If the
HttpServletResponse is not already committed, issue a Permanent Redirect (301) and call
ServletRewrite.abort(). |
void |
redirectTemporary(String location)
If the
HttpServletResponse is not already committed, issue a Temporary Redirect (302) and call
ServletRewrite.abort(). |
void |
sendErrorCode(int code)
If the
HttpServletResponse is not already committed, send an HTTP status code and and call
ServletRewrite.abort(). |
void |
sendErrorCode(int code,
String message)
If the
HttpServletResponse is not already committed, send an HTTP status code and and call
ServletRewrite.abort(). |
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(). |
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(). |
forward, getDispatchResource, include, setRequest, setResponsegetAddress, getContextPath, getInboundAddressabort, getRequest, getResponse, getServletContext, handled, proceed, setFlowgetEvaluatedRules, getFlow, getRewriteContextvoid redirectTemporary(String location)
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.
void redirectPermanent(String location)
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.
void sendStatusCode(int code)
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.
void sendStatusCode(int code,
String message)
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.
void sendErrorCode(int code)
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.
void sendErrorCode(int code,
String message)
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.
Copyright © 2023 OCPsoft. All rights reserved.