org.openxava.filters
Class BaseContextFilter
java.lang.Object
org.openxava.filters.BaseContextFilter
- All Implemented Interfaces:
- java.io.Serializable, IFilter, IRequestFilter
public abstract class BaseContextFilter
- extends java.lang.Object
- implements IRequestFilter
Base filter to allow access to a context object of
current module and the other modules too.
- Author:
- Javier Paniza
- See Also:
- Serialized Form
|
Method Summary |
protected java.lang.Object |
get(java.lang.String name)
|
protected ModuleContext |
getContext()
|
protected Environment |
getEnvironment()
Environment allows you access to the environment variables for the current module. |
protected java.lang.Integer |
getInteger(java.lang.String name)
|
protected java.lang.Long |
getLong(java.lang.String name)
|
protected java.lang.String |
getString(java.lang.String name)
|
void |
setRequest(HttpServletRequest request)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openxava.filters.IFilter |
filter |
BaseContextFilter
public BaseContextFilter()
setRequest
public void setRequest(HttpServletRequest request)
- Specified by:
setRequest in interface IRequestFilter
getContext
protected ModuleContext getContext()
get
protected java.lang.Object get(java.lang.String name)
throws XavaException
- Throws:
XavaException
getString
protected java.lang.String getString(java.lang.String name)
throws XavaException
- Throws:
XavaException
getInteger
protected java.lang.Integer getInteger(java.lang.String name)
throws XavaException
- Throws:
XavaException
getLong
protected java.lang.Long getLong(java.lang.String name)
throws XavaException
- Throws:
XavaException
getEnvironment
protected Environment getEnvironment()
throws XavaException
- Environment allows you access to the environment variables for the current module.
- Returns:
-
- Throws:
XavaException