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 Summary
Modifier and TypeMethodDescriptionvoidredirectPermanent(String location) If theHttpServletResponseis not already committed, issue a Permanent Redirect (301) and callServletRewrite.abort().voidredirectTemporary(String location) If theHttpServletResponseis not already committed, issue a Temporary Redirect (302) and callServletRewrite.abort().voidsendErrorCode(int code) If theHttpServletResponseis not already committed, send an HTTP status code and and callServletRewrite.abort().voidsendErrorCode(int code, String message) If theHttpServletResponseis not already committed, send an HTTP status code and and callServletRewrite.abort().voidsendStatusCode(int code) If theHttpServletResponseis not already committed, send an HTTP status code, flush theOutputStreambuffer, and and callServletRewrite.abort().voidsendStatusCode(int code, String message) If theHttpServletResponseis not already committed, send an HTTP status code, flush theOutputStreambuffer, and and callServletRewrite.abort().Methods inherited from interface org.ocpsoft.rewrite.servlet.http.event.HttpServletRewrite
getAddress, getContextPath, getInboundAddressMethods inherited from interface org.ocpsoft.rewrite.servlet.event.InboundServletRewrite
forward, getDispatchResource, include, setRequest, setResponseMethods inherited from interface org.ocpsoft.rewrite.event.Rewrite
getEvaluatedRules, getFlow, getRewriteContextMethods inherited from interface org.ocpsoft.rewrite.servlet.event.ServletRewrite
abort, getRequest, getResponse, getServletContext, handled, proceed, setFlow
-
Method Details
-
redirectTemporary
If theHttpServletResponseis not already committed, issue a Temporary Redirect (302) and callServletRewrite.abort(). This location must be includeHttpServletRewrite.getContextPath()if attempting to redirect within the currentServletContextThis method commits the response, after which no more information can be written and the response cannot be modified.
-
redirectPermanent
If theHttpServletResponseis not already committed, issue a Permanent Redirect (301) and callServletRewrite.abort(). This location must be includeHttpServletRewrite.getContextPath()if attempting to redirect within the currentServletContextThis method commits the response, after which no more information can be written and the response cannot be modified.
-
sendStatusCode
void sendStatusCode(int code) If theHttpServletResponseis not already committed, send an HTTP status code, flush theOutputStreambuffer, and and callServletRewrite.abort().This method commits the response, after which no more information can be written and the response cannot be modified.
-
sendStatusCode
If theHttpServletResponseis not already committed, send an HTTP status code, flush theOutputStreambuffer, and and callServletRewrite.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 theHttpServletResponseis not already committed, send an HTTP status code and and callServletRewrite.abort().This method commits the response, after which no more information can be written and the response cannot be modified.
-
sendErrorCode
If theHttpServletResponseis not already committed, send an HTTP status code and and callServletRewrite.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.
-