org.apache.beehive.netui.pageflow.internal
Class RequestValues

Object
  extended by RequestValues

public class RequestValues
extends Object

Methods for setting/getting page flow-related values in the request.


Constructor Summary
RequestValues()
           
 
Method Summary
static boolean avoidDirectResponseOutput(ServletRequest request)
          Tell whether a special request attribute was set, indicating that we should avoid writing to the response (or setting response error codes).
static DeferredPageFlowException getDeferredException(ServletRequest request, boolean removeFromRequest)
           
static ActionForm getForwardedForm(ServletRequest request, boolean removeFromRequest)
           
static int getForwardedRequestCount(ServletRequest request)
           
static String getOriginalServletPath(ServletRequest request)
           
static boolean isForwardedRequest(ServletRequest request)
           
static void setAvoidDirectResponseOutput(ServletRequest request)
          Set a special request attribute to indicate that we should avoid writing to the response (or setting response error codes).
static void setDeferredException(ServletRequest request, DeferredPageFlowException e)
          This is an error deferred until FlowController.execute().
static void setForwardedForm(ServletRequest request, ActionForm form)
          Set the forwarded form.
static void setForwardedRequestCount(ServletRequest request, int count)
           
static void setOriginalServletPath(ServletRequest request, String servletPath)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestValues

public RequestValues()
Method Detail

isForwardedRequest

public static boolean isForwardedRequest(ServletRequest request)

getForwardedRequestCount

public static int getForwardedRequestCount(ServletRequest request)

setForwardedRequestCount

public static void setForwardedRequestCount(ServletRequest request,
                                            int count)

avoidDirectResponseOutput

public static boolean avoidDirectResponseOutput(ServletRequest request)
Tell whether a special request attribute was set, indicating that we should avoid writing to the response (or setting response error codes).


setAvoidDirectResponseOutput

public static void setAvoidDirectResponseOutput(ServletRequest request)
Set a special request attribute to indicate that we should avoid writing to the response (or setting response error codes).


setOriginalServletPath

public static void setOriginalServletPath(ServletRequest request,
                                          String servletPath)

getOriginalServletPath

public static String getOriginalServletPath(ServletRequest request)

setForwardedForm

public static void setForwardedForm(ServletRequest request,
                                    ActionForm form)
Set the forwarded form. This overrides the auto-generated form created by processActionForm and populated by processPopulate (in PageFlowRequestProcessor).


getForwardedForm

public static ActionForm getForwardedForm(ServletRequest request,
                                          boolean removeFromRequest)

setDeferredException

public static void setDeferredException(ServletRequest request,
                                        DeferredPageFlowException e)
This is an error deferred until FlowController.execute().


getDeferredException

public static DeferredPageFlowException getDeferredException(ServletRequest request,
                                                             boolean removeFromRequest)