Interface InboundServletRewrite<IN extends jakarta.servlet.ServletRequest,OUT extends jakarta.servlet.ServletResponse>
- All Superinterfaces:
InboundRewrite,Rewrite,ServletRewrite<IN,OUT>
- All Known Subinterfaces:
HttpInboundServletRewrite
public interface InboundServletRewrite<IN extends jakarta.servlet.ServletRequest,OUT extends jakarta.servlet.ServletResponse>
extends InboundRewrite, ServletRewrite<IN,OUT>
Immutable event propagated to registered
RewriteLifecycleListener and RewriteProvider instances when
an inbound as the rewrite lifecycle is executed.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionvoidMarks theInboundServletRewriteEventas handled, terminates further handling, and instructs the container to forward the currentServletRequestandServletResponseto the specified resource address.Returns the resource address of the requestedInboundServletRewriteEvent#include(String)orInboundServletRewriteEvent#forward(String)voidMarks theInboundServletRewriteEventas handled, terminates further handling, and instructs the container to include the specified resource address in the currentServletRequestandServletResponsecycle.voidsetRequest(IN request) Set a newServletRequestto be used for the remaining duration of the currentServletRequest.voidsetResponse(OUT response) Set a newServletResponseto be used for the remaining duration of the currentServletRequest.Methods 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
-
include
Marks theInboundServletRewriteEventas handled, terminates further handling, and instructs the container to include the specified resource address in the currentServletRequestandServletResponsecycle. This include must be implemented usingRequestDispatcher.include(ServletRequest, ServletResponse) -
forward
Marks theInboundServletRewriteEventas handled, terminates further handling, and instructs the container to forward the currentServletRequestandServletResponseto the specified resource address. This forward must be implemented usingRequestDispatcher.forward(ServletRequest, ServletResponse) -
setRequest
Set a newServletRequestto be used for the remaining duration of the currentServletRequest. This method is usually used to addServletRequestWrapperimplementations. -
setResponse
Set a newServletResponseto be used for the remaining duration of the currentServletRequest. This method is usually used to addServletResponseWrapperimplementations. -
getDispatchResource
String getDispatchResource()Returns the resource address of the requestedInboundServletRewriteEvent#include(String)orInboundServletRewriteEvent#forward(String)
-