jodd.madvoc
Class ActionRequest

java.lang.Object
  extended by jodd.madvoc.ActionRequest

public class ActionRequest
extends java.lang.Object

Encapsulates single action invocation and acts as an action proxy. It invokes all assigned action interceptors during action invocation and specifies the result after action method invocation.


Field Summary
protected  java.lang.Object action
           
protected  ActionConfig config
           
protected  boolean executed
           
protected  int interceptorIndex
           
protected  java.lang.String nextActionPath
           
protected  ActionRequest previousActionRequest
           
protected  javax.servlet.http.HttpServletRequest serlvetRequest
           
protected  javax.servlet.http.HttpServletResponse servletResponse
           
protected  int totalInterceptors
           
protected  WebApplication webapp
           
 
Constructor Summary
protected ActionRequest(WebApplication webapp, ActionConfig config, java.lang.Object action, javax.servlet.http.HttpServletRequest serlvetRequest, javax.servlet.http.HttpServletResponse servletResponse)
          Creates new action request and action object.
 
Method Summary
 java.lang.Object getAction()
           
 ActionConfig getActionConfig()
           
 java.lang.String getActionPath()
           
 javax.servlet.http.HttpServletRequest getHttpServletRequest()
           
 javax.servlet.http.HttpServletResponse getHttpServletResponse()
           
 java.lang.String getNextActionPath()
          Returns next request string for action chaining.
 ActionRequest getPreviousActionRequest()
           
 WebApplication getWebApplication()
           
 java.lang.String invoke()
          Invokes the action.
 boolean isExecuted()
           
 void setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
           
 void setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
           
 void setNextActionPath(java.lang.String nextActionPath)
          Specifies the next action path, that will be chained to current action request.
 void setPreviousActionRequest(ActionRequest previousActionRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webapp

protected final WebApplication webapp

config

protected final ActionConfig config

serlvetRequest

protected javax.servlet.http.HttpServletRequest serlvetRequest

servletResponse

protected javax.servlet.http.HttpServletResponse servletResponse

totalInterceptors

protected final int totalInterceptors

interceptorIndex

protected int interceptorIndex

action

protected final java.lang.Object action

executed

protected boolean executed

nextActionPath

protected java.lang.String nextActionPath

previousActionRequest

protected ActionRequest previousActionRequest
Constructor Detail

ActionRequest

protected ActionRequest(WebApplication webapp,
                        ActionConfig config,
                        java.lang.Object action,
                        javax.servlet.http.HttpServletRequest serlvetRequest,
                        javax.servlet.http.HttpServletResponse servletResponse)
Creates new action request and action object.

Method Detail

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest()

setHttpServletRequest

public void setHttpServletRequest(javax.servlet.http.HttpServletRequest request)

getHttpServletResponse

public javax.servlet.http.HttpServletResponse getHttpServletResponse()

setHttpServletResponse

public void setHttpServletResponse(javax.servlet.http.HttpServletResponse response)

getActionConfig

public ActionConfig getActionConfig()

getAction

public java.lang.Object getAction()

getActionPath

public java.lang.String getActionPath()

getWebApplication

public WebApplication getWebApplication()

isExecuted

public boolean isExecuted()

getNextActionPath

public java.lang.String getNextActionPath()
Returns next request string for action chaining.


setNextActionPath

public void setNextActionPath(java.lang.String nextActionPath)
Specifies the next action path, that will be chained to current action request.


getPreviousActionRequest

public ActionRequest getPreviousActionRequest()

setPreviousActionRequest

public void setPreviousActionRequest(ActionRequest previousActionRequest)

invoke

public java.lang.String invoke()
                        throws java.lang.Exception
Invokes the action. Invokes all interceptors before and after action invocation.

Returns:
action result value
Throws:
java.lang.Exception


Copyright ©2008 Jodd Team