public class ConfigurableWroFilter extends WroFilter
WroFilter which allows configuration by injecting some of the properties. This class can be
very useful when using DelegatingFilterProxy (spring extension of Filter) and configuring the fields with values from
some properties file which may vary depending on environment.| Constructor and Description |
|---|
ConfigurableWroFilter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding() |
protected String |
newMBeanName() |
protected ObjectFactory<WroConfiguration> |
newWroConfigurationFactory(javax.servlet.FilterConfig filterConfig) |
protected WroManagerFactory |
newWroManagerFactory()
The default implementation of ConfigurableWroFilter should allow setting of pre & post processors in configuration
properties.
|
void |
setCacheUpdatePeriod(long cacheUpdatePeriod) |
void |
setDebug(boolean debug) |
void |
setDisableCache(boolean disableCache) |
void |
setEncoding(String encoding) |
void |
setGzipEnabled(boolean gzipEnabled) |
void |
setJmxEnabled(boolean jmxEnabled) |
void |
setMbeanName(String mbeanName) |
void |
setModelUpdatePeriod(long modelUpdatePeriod) |
void |
setProperties(Properties properties) |
configureDefaultHeaders, destroy, doFilter, doInit, getConfiguration, getMBeanServer, getWroManagerFactory, init, newRequestHandlerFactory, newResponseHeadersConfigurer, onException, onRequestProcessed, onRuntimeException, setConfiguration, setEnable, setRequestHandlerFactory, setResponseHeaders, setWroManagerFactoryprotected ObjectFactory<WroConfiguration> newWroConfigurationFactory(javax.servlet.FilterConfig filterConfig)
newWroConfigurationFactory in class WroFilterObjectFactory used to create a WroConfiguration object.public void setDisableCache(boolean disableCache)
disableCache - the disableCache to setprotected String newMBeanName()
newMBeanName in class WroFilterprotected WroManagerFactory newWroManagerFactory()
WroManagerFactory is configured.newWroManagerFactory in class WroFilterWroManagerFactory instance.public void setMbeanName(String mbeanName)
mbeanName - the mbeanName to setpublic void setJmxEnabled(boolean jmxEnabled)
jmxEnabled - the jmxEnabled to setpublic final void setDebug(boolean debug)
debug - the debug to setpublic final void setGzipEnabled(boolean gzipEnabled)
gzipEnabled - the gzipEnabled to setpublic final void setCacheUpdatePeriod(long cacheUpdatePeriod)
cacheUpdatePeriod - the cacheUpdatePeriod to setpublic final void setModelUpdatePeriod(long modelUpdatePeriod)
modelUpdatePeriod - the modelUpdatePeriod to setpublic void setProperties(Properties properties)
properties - the properties to setpublic String getEncoding()
public void setEncoding(String encoding)
encoding - the encoding to setCopyright © 2008-2013. All Rights Reserved.