|
rewrite-api-servlet 2.0.0.Alpha6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpInboundServletRewrite
Rewrite event for an HttpServletRequest, HttpServletResponse lifecycle.
| Method Summary | |
|---|---|
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(). |
| Methods inherited from interface org.ocpsoft.rewrite.servlet.event.InboundServletRewrite |
|---|
forward, getDispatchResource, include, setRequest, setResponse |
| Methods inherited from interface org.ocpsoft.rewrite.servlet.http.event.HttpServletRewrite |
|---|
getAddress, getContextPath, getInboundAddress |
| Methods inherited from interface org.ocpsoft.rewrite.servlet.event.ServletRewrite |
|---|
abort, getFlow, getRequest, getResponse, getServletContext, handled, proceed, setFlow |
| Methods inherited from interface org.ocpsoft.rewrite.event.Rewrite |
|---|
getRewriteContext |
| Method Detail |
|---|
void 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.
|
rewrite-api-servlet 2.0.0.Alpha6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||