|
rewrite-api-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InboundServletRewrite<IN extends ServletRequest,OUT extends ServletResponse>
Immutable event propagated to registered RewriteLifecycleListener and RewriteProvider instances when
an inbound as the rewrite lifecycle is executed.
| Method Summary | |
|---|---|
void |
forward(String resource)
Marks the InboundServletRewriteEvent as handled, terminates further handling, and instructs the container
to forward the current ServletRequest and ServletResponse to the specified resource address. |
String |
getDispatchResource()
Returns the resource address of the requested InboundServletRewriteEvent#include(String) or
InboundServletRewriteEvent#forward(String) |
void |
include(String resource)
Marks the InboundServletRewriteEvent as handled, terminates further handling, and instructs the container
to include the specified resource address in the current ServletRequest and ServletResponse cycle. |
void |
setRequest(IN request)
Set a new ServletRequest to be used for the remaining duration of the current ServletRequest. |
void |
setResponse(OUT response)
Set a new ServletResponse to be used for the remaining duration of the current ServletRequest. |
| Methods inherited from interface org.ocpsoft.rewrite.servlet.event.ServletRewrite |
|---|
abort, getRequest, getResponse, getServletContext, handled, proceed, setFlow |
| Methods inherited from interface org.ocpsoft.rewrite.event.Rewrite |
|---|
getFlow, getRewriteContext |
| Method Detail |
|---|
void include(String resource)
InboundServletRewriteEvent as handled, terminates further handling, and instructs the container
to include the specified resource address in the current ServletRequest and ServletResponse cycle.
This include must be implemented using RequestDispatcher.include(ServletRequest, ServletResponse)
void forward(String resource)
InboundServletRewriteEvent as handled, terminates further handling, and instructs the container
to forward the current ServletRequest and ServletResponse to the specified resource address. This
forward must be implemented using RequestDispatcher.forward(ServletRequest, ServletResponse)
void setRequest(IN request)
ServletRequest to be used for the remaining duration of the current ServletRequest. This
method is usually used to add ServletRequestWrapper implementations.
void setResponse(OUT response)
ServletResponse to be used for the remaining duration of the current ServletRequest.
This method is usually used to add ServletResponseWrapper implementations.
String getDispatchResource()
InboundServletRewriteEvent#include(String) or
InboundServletRewriteEvent#forward(String)
|
rewrite-api-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||