org.zkoss.zest.sys.impl
Class ActionContextImpl

java.lang.Object
  extended by org.zkoss.zest.sys.impl.ActionContextImpl
All Implemented Interfaces:
ActionContext

public class ActionContextImpl
extends java.lang.Object
implements ActionContext

The default implementation of ActionContext.

Author:
tomyeh

Constructor Summary
ActionContextImpl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.zkoss.xel.VariableResolver resolver, org.zkoss.xel.FunctionMapper mapper)
           
 
Method Summary
 java.lang.Object evaluate(org.zkoss.xel.Expression expression)
          Evaluates the expression.
protected  org.zkoss.xel.ExpressionFactory getExpressionFactory()
          Returns the expression factory.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionContextImpl

public ActionContextImpl(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         org.zkoss.xel.VariableResolver resolver,
                         org.zkoss.xel.FunctionMapper mapper)
Method Detail

getServletRequest

public javax.servlet.http.HttpServletRequest getServletRequest()
Description copied from interface: ActionContext
Returns the request.

Specified by:
getServletRequest in interface ActionContext

getServletResponse

public javax.servlet.http.HttpServletResponse getServletResponse()
Description copied from interface: ActionContext
Returns the response.

Specified by:
getServletResponse in interface ActionContext

getRequestPath

public java.lang.String getRequestPath()
Description copied from interface: ActionContext
Returns the request's path (a concontenation of HttpServletRequest.getServletPath() and getRequestPath()).

Specified by:
getRequestPath in interface ActionContext

parseExpression

public org.zkoss.xel.Expression parseExpression(java.lang.String expression,
                                                java.lang.Class expectedType)
                                         throws org.zkoss.xel.XelException
Description copied from interface: ActionContext
Prepares the expression.

Specified by:
parseExpression in interface ActionContext
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

public java.lang.Object evaluate(org.zkoss.xel.Expression expression)
                          throws org.zkoss.xel.XelException
Description copied from interface: ActionContext
Evaluates the expression.

Specified by:
evaluate in interface ActionContext
Throws:
org.zkoss.xel.XelException

getExpressionFactory

protected org.zkoss.xel.ExpressionFactory getExpressionFactory()
Returns the expression factory.


getFunctionMapper

public org.zkoss.xel.FunctionMapper getFunctionMapper()
Description copied from interface: ActionContext
Returns the function mapper, or null if not available.

Specified by:
getFunctionMapper in interface ActionContext

getVariableResolver

public org.zkoss.xel.VariableResolver getVariableResolver()
Description copied from interface: ActionContext
Returns the variable resolver (never null).

Specified by:
getVariableResolver in interface ActionContext


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