ro.isdc.wro.extensions.http
Class SpringWroFilter
java.lang.Object
ro.isdc.wro.http.WroFilter
ro.isdc.wro.http.ConfigurableWroFilter
ro.isdc.wro.extensions.http.SpringWroFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public final class SpringWroFilter
- extends ConfigurableWroFilter
SpringWroFilter.
A WroFilter capable to get a WroManagerFactory
instance from spring
context. The filter must have initParam called targetBeanName
whose value will be looked up in the spring application context.
- Author:
- Alex Objelean
Method Summary |
protected void |
doInit(javax.servlet.FilterConfig filterConfig)
Custom filter initialization - can be used for extended classes. |
protected WroManagerFactory |
newWroManagerFactory()
The default implementation of ConfigurableWroFilter should allow setting of pre & post processors in configuration
properties. |
Methods inherited from class ro.isdc.wro.http.ConfigurableWroFilter |
getEncoding, newMBeanName, newWroConfigurationFactory, setCacheUpdatePeriod, setDebug, setDisableCache, setEncoding, setGzipEnabled, setJmxEnabled, setMbeanName, setModelUpdatePeriod, setProperties |
Methods inherited from class ro.isdc.wro.http.WroFilter |
configureDefaultHeaders, destroy, doFilter, getConfiguration, getMBeanServer, getWroManagerFactory, init, newRequestHandlerFactory, newResponseHeadersConfigurer, onException, onRequestProcessed, onRuntimeException, setConfiguration, setEnable, setRequestHandlerFactory, setResponseHeaders, setWroManagerFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringWroFilter
public SpringWroFilter()
doInit
protected void doInit(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Custom filter initialization - can be used for extended classes.
- Overrides:
doInit
in class WroFilter
- Throws:
javax.servlet.ServletException
- See Also:
Filter.init(FilterConfig).
newWroManagerFactory
protected WroManagerFactory newWroManagerFactory()
- The default implementation of ConfigurableWroFilter should allow setting of pre & post processors in configuration
properties. This will work only if no custom
WroManagerFactory
is configured.
- Overrides:
newWroManagerFactory
in class ConfigurableWroFilter
- Returns:
WroManagerFactory
instance.
Copyright © 2008-2013. All Rights Reserved.