|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zuss.util.RequestResolver
public class RequestResolver
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) {...}
.
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 |
---|
protected final java.util.Map<java.lang.String,java.lang.Object> _vars
protected final javax.servlet.http.HttpServletRequest _request
Constructor Detail |
---|
public RequestResolver(javax.servlet.http.HttpServletRequest request)
Method Detail |
---|
public java.lang.Object getVariable(java.lang.String name)
Resolver
getVariable
in interface Resolver
public java.lang.reflect.Method getMethod(java.lang.String name)
Resolver
getMethod
in interface Resolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |