Package 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
-
-
Constructor Summary
Constructors Constructor Description BaseContextFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(javax.servlet.http.HttpServletRequest request)
-
-
-
Method Detail
-
setRequest
public void setRequest(javax.servlet.http.HttpServletRequest request)
- Specified by:
setRequest
in interfaceIRequestFilter
-
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
-
-