org.zkoss.zest
Interface ActionContext

All Known Implementing Classes:
ActionContextImpl

public interface ActionContext

Represents an execution of an action. It is caused by a request.

The execution method of an action could have two signatures:

  1. String execute(ActionContext); //higher priority
  2. String execute();

Author:
tomyeh

Method Summary
 java.lang.Object evaluate(org.zkoss.xel.Expression expression)
          Evaluates the expression.
 org.zkoss.xel.FunctionMapper getFunctionMapper()
          Returns the function mapper, or null if not available.
 java.lang.String getRequestPath()
          Returns the request's path (a concontenation of HttpServletRequest.getServletPath() and getRequestPath()).
 javax.servlet.http.HttpServletRequest getServletRequest()
          Returns the request.
 javax.servlet.http.HttpServletResponse getServletResponse()
          Returns the response.
 org.zkoss.xel.VariableResolver getVariableResolver()
          Returns the variable resolver (never null).
 org.zkoss.xel.Expression parseExpression(java.lang.String expression, java.lang.Class expectedType)
          Prepares the expression.
 

Method Detail

getServletRequest

javax.servlet.http.HttpServletRequest getServletRequest()
Returns the request.


getServletResponse

javax.servlet.http.HttpServletResponse getServletResponse()
Returns the response.

Since:
1.1.0

getRequestPath

java.lang.String getRequestPath()
Returns the request's path (a concontenation of HttpServletRequest.getServletPath() and getRequestPath()).


parseExpression

org.zkoss.xel.Expression parseExpression(java.lang.String expression,
                                         java.lang.Class expectedType)
                                         throws org.zkoss.xel.XelException
Prepares the expression.

Parameters:
expression - the expression to be prepared for being evaluated later.
expectedType - the expected type of the result of the evaluation
Throws:
org.zkoss.xel.XelException

evaluate

java.lang.Object evaluate(org.zkoss.xel.Expression expression)
                          throws org.zkoss.xel.XelException
Evaluates the expression.

Throws:
org.zkoss.xel.XelException

getFunctionMapper

org.zkoss.xel.FunctionMapper getFunctionMapper()
Returns the function mapper, or null if not available.


getVariableResolver

org.zkoss.xel.VariableResolver getVariableResolver()
Returns the variable resolver (never null).



Copyright © 2005-2010 Potix Corporation. All Rights Reserved.