| java.lang.Object org.springframework.web.filter.GenericFilterBean
All known Subclasses: org.springframework.web.filter.OncePerRequestFilter, org.springframework.web.filter.DelegatingFilterProxy,
Field Summary | |
final protected Log | logger |
Method Summary | |
final protected void | addRequiredProperty(String property) Subclasses can invoke this method to specify that this property
(which must match a JavaBean property they expose) is mandatory,
and must be supplied as a config parameter. | public void | afterPropertiesSet() Calls the initFilterBean() method that might
contain custom initialization of a subclass. | public void | destroy() Subclasses may override this to perform custom filter shutdown. | final public FilterConfig | getFilterConfig() Make the FilterConfig of this filter available, if any. | final protected String | getFilterName() Make the name of this filter available to subclasses. | final protected ServletContext | getServletContext() Make the ServletContext of this filter available to subclasses. | final public void | init(FilterConfig filterConfig) Standard way of initializing this filter. | protected void | initBeanWrapper(BeanWrapper bw) Initialize the BeanWrapper for this GenericFilterBean,
possibly with custom editors. | protected void | initFilterBean() Subclasses may override this to perform custom initialization. | final public void | setBeanName(String beanName) Stores the bean name as defined in the Spring bean factory. | final public void | setFilterConfig(FilterConfig filterConfig) Alternative way of initializing this filter. | final public void | setServletContext(ServletContext servletContext) Stores the ServletContext that the bean factory runs in. |
logger | final protected Log logger(Code) | | Logger available to subclasses
|
addRequiredProperty | final protected void addRequiredProperty(String property)(Code) | | Subclasses can invoke this method to specify that this property
(which must match a JavaBean property they expose) is mandatory,
and must be supplied as a config parameter. This should be called
from the constructor of a subclass.
This method is only relevant in case of traditional initialization
driven by a FilterConfig instance.
Parameters: property - name of the required property |
destroy | public void destroy()(Code) | | Subclasses may override this to perform custom filter shutdown.
Note: This method will be called from standard filter destruction
as well as filter bean destruction in a Spring application context.
This default implementation is empty.
|
getFilterConfig | final public FilterConfig getFilterConfig()(Code) | | Make the FilterConfig of this filter available, if any.
Analogous to GenericServlet's getServletConfig() .
Public to resemble the getFilterConfig() method
of the Servlet Filter version that shipped with WebLogic 6.1.
the FilterConfig instance, or null if none available See Also: javax.servlet.GenericServlet.getServletConfig |
init | final public void init(FilterConfig filterConfig) throws ServletException(Code) | | Standard way of initializing this filter.
Map config parameters onto bean properties of this filter, and
invoke subclass initialization.
Parameters: filterConfig - the configuration for this filter throws: ServletException - if bean properties are invalid (or requiredproperties are missing), or if subclass initialization fails. See Also: GenericFilterBean.initFilterBean |
initFilterBean | protected void initFilterBean() throws ServletException(Code) | | Subclasses may override this to perform custom initialization.
All bean properties of this filter will have been set before this
method is invoked.
Note: This method will be called from standard filter initialization
as well as filter bean initialization in a Spring application context.
Filter name and ServletContext will be available in both cases.
This default implementation is empty.
throws: ServletException - if subclass initialization fails See Also: GenericFilterBean.getFilterName() See Also: GenericFilterBean.getServletContext() |
|
|