rewrite-api-servlet 1.0.3.Final

org.ocpsoft.rewrite.servlet.event
Interface InboundServletRewrite<IN extends javax.servlet.ServletRequest,OUT extends javax.servlet.ServletResponse>

All Superinterfaces:
InboundRewrite, Rewrite, ServletRewrite<IN,OUT>
All Known Subinterfaces:
HttpInboundServletRewrite

public interface InboundServletRewrite<IN extends javax.servlet.ServletRequest,OUT extends javax.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
 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, getFlow, getRequest, getResponse, handled, proceed, setFlow
 
Methods inherited from interface org.ocpsoft.rewrite.event.Rewrite
getRewriteContext
 

Method Detail

include

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. This include must be implemented using RequestDispatcher.include(ServletRequest, ServletResponse)


forward

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. This forward must be implemented using RequestDispatcher.forward(ServletRequest, ServletResponse)


setRequest

void setRequest(IN request)
Set a new ServletRequest to be used for the remaining duration of the current ServletRequest. This method is usually used to add ServletRequestWrapper implementations.


setResponse

void setResponse(OUT response)
Set a new ServletResponse to be used for the remaining duration of the current ServletRequest. This method is usually used to add ServletResponseWrapper implementations.


getDispatchResource

String getDispatchResource()
Returns the resource address of the requested InboundServletRewriteEvent#include(String) or InboundServletRewriteEvent#forward(String)


rewrite-api-servlet 1.0.3.Final

Copyright © 2012 OCPsoft. All Rights Reserved.