org.zkoss.zuss.util
Class RequestResolver

java.lang.Object
  extended by org.zkoss.zuss.util.RequestResolver
All Implemented Interfaces:
Resolver

public class RequestResolver
extends java.lang.Object
implements Resolver

The resolver used to provide the builtin variables and functions.

Built-in variables include the request's attributes and parameters. In additions, they include the variables identifiing a browser, such as ie, gecko, opera, webkit, ff (the same as gecko) and safari (the same as gecko). The browser variables are a double representing the version of the browser. For example, @if (@ie < 9) {...}.

Author:
tomyeh

Field Summary
protected  javax.servlet.http.HttpServletRequest _request
          The request.
protected  java.util.Map<java.lang.String,java.lang.Object> _vars
          A map of built-in variables, including ie, gecko, opera and webkit.
 
Constructor Summary
RequestResolver(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 java.lang.reflect.Method getMethod(java.lang.String name)
          Returns the method of the given name, or null if not available.
 java.lang.Object getVariable(java.lang.String name)
          Returns the value of the given name, or null if not available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_vars

protected final java.util.Map<java.lang.String,java.lang.Object> _vars
A map of built-in variables, including ie, gecko, opera and webkit.


_request

protected final javax.servlet.http.HttpServletRequest _request
The request.

Constructor Detail

RequestResolver

public RequestResolver(javax.servlet.http.HttpServletRequest request)
Method Detail

getVariable

public java.lang.Object getVariable(java.lang.String name)
Description copied from interface: Resolver
Returns the value of the given name, or null if not available.

Specified by:
getVariable in interface Resolver

getMethod

public java.lang.reflect.Method getMethod(java.lang.String name)
Description copied from interface: Resolver
Returns the method of the given name, or null if not available.

Specified by:
getMethod in interface Resolver


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