public interface InboundServletRewrite<IN extends javax.servlet.ServletRequest,OUT extends javax.servlet.ServletResponse> extends InboundRewrite, ServletRewrite<IN,OUT>
RewriteLifecycleListener and RewriteProvider instances when
an inbound as the rewrite lifecycle is executed.| Modifier and Type | Method and Description |
|---|---|
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. |
abort, getRequest, getResponse, getServletContext, handled, proceed, setFlowgetEvaluatedRules, getFlow, getRewriteContextvoid 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)Copyright © 2023 OCPsoft. All rights reserved.