public final class WroConfiguration extends Object implements WroConfigurationMBean
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECTION_TIMEOUT
Default value for connectionTimeout property.
|
static String |
DEFAULT_ENCODING
Default encoding to use.
|
| Constructor and Description |
|---|
WroConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Perform the cleanup, clear the listeners.
|
boolean |
equals(Object obj) |
long |
getCacheUpdatePeriod() |
int |
getConnectionTimeout() |
String |
getEncoding() |
String |
getHeader() |
String |
getMbeanName() |
long |
getModelUpdatePeriod()
Async
|
static String |
getObjectName() |
long |
getResourceWatcherUpdatePeriod() |
String |
getWroManagerClassName() |
boolean |
isCacheGzippedContent() |
boolean |
isDebug() |
boolean |
isGzipEnabled() |
boolean |
isIgnoreEmptyGroup() |
boolean |
isIgnoreFailingProcessor() |
boolean |
isIgnoreMissingResources() |
boolean |
isJmxEnabled() |
boolean |
isMinimizeEnabled() |
boolean |
isParallelPreprocessing() |
boolean |
isResourceWatcherAsync() |
void |
registerCacheUpdatePeriodChangeListener(PropertyChangeListener listener)
Register a listener which is notified when the modelUpdate period value is changed.
|
void |
registerModelUpdatePeriodChangeListener(PropertyChangeListener listener)
Register a listener which is notified when the modelUpdate period value is changed.
|
void |
reloadCache()
Force reload of the cache.
|
void |
reloadModel()
Force reload of the model.
|
void |
setCacheGzippedContent(boolean cacheGzippedContent)
Whether gzipped content should be cached or not.
|
void |
setCacheUpdatePeriod(long period)
Set after how many seconds the cache containing merged resources by group name should be updated.
|
void |
setConnectionTimeout(int connectionTimeout)
Timeout (milliseconds) of the url connection for external resources.
|
void |
setDebug(boolean debug)
Set the debug mode.
|
void |
setEncoding(String encoding)
Encoding to use when writing the processed result into the output stream.
|
void |
setGzipEnabled(boolean enable) |
void |
setHeader(String header) |
void |
setIgnoreEmptyGroup(boolean ignoreEmptyGroup) |
void |
setIgnoreFailingProcessor(boolean ignoreFailingProcessor) |
void |
setIgnoreMissingResources(boolean ignoreMissingResources) |
void |
setJmxEnabled(boolean jmxEnabled) |
void |
setMbeanName(String mbeanName) |
void |
setMinimizeEnabled(boolean minimizeEnabled) |
void |
setModelUpdatePeriod(long period)
Set after how many seconds the wro model should be updated.
|
void |
setParallelPreprocessing(boolean parallelPreprocessing) |
void |
setResourceWatcherAsync(boolean resourceWatcherAsync) |
void |
setResourceWatcherUpdatePeriod(long resourceWatcherUpdatePeriod)
Set after how many seconds the resource change detection is performed..
|
void |
setWroManagerClassName(String wroManagerClassName) |
String |
toString() |
public static final String DEFAULT_ENCODING
public static int DEFAULT_CONNECTION_TIMEOUT
public static String getObjectName()
public long getCacheUpdatePeriod()
getCacheUpdatePeriod in interface WroConfigurationMBeanpublic long getModelUpdatePeriod()
getModelUpdatePeriod in interface WroConfigurationMBeanpublic void setCacheUpdatePeriod(long period)
setCacheUpdatePeriod in interface WroConfigurationMBeanperiod - number of seconds. Zero or less, means never.public void setModelUpdatePeriod(long period)
setModelUpdatePeriod in interface WroConfigurationMBeanperiod - number of seconds. Zero or less, means never.public boolean isGzipEnabled()
isGzipEnabled in interface WroConfigurationMBeanpublic void setGzipEnabled(boolean enable)
setGzipEnabled in interface WroConfigurationMBeanenable - if true, gzip will be enabled, otherwise will be disabled.public void reloadCache()
reloadCache in interface WroConfigurationMBeanpublic void reloadModel()
reloadModel in interface WroConfigurationMBeanpublic void registerModelUpdatePeriodChangeListener(PropertyChangeListener listener)
listener - to add.public void registerCacheUpdatePeriodChangeListener(PropertyChangeListener listener)
listener - to add.public boolean isDebug()
isDebug in interface WroConfigurationMBeanpublic void setDebug(boolean debug)
WroConfigurationMBeansetDebug in interface WroConfigurationMBeandebug - the debug to setpublic boolean isIgnoreMissingResources()
isIgnoreMissingResources in interface WroConfigurationMBeanpublic void setIgnoreMissingResources(boolean ignoreMissingResources)
setIgnoreMissingResources in interface WroConfigurationMBeanignoreMissingResources - the ignoreMissingResources to setpublic boolean isJmxEnabled()
public void setJmxEnabled(boolean jmxEnabled)
jmxEnabled - the jmxEnabled to setpublic boolean isCacheGzippedContent()
isCacheGzippedContent in interface WroConfigurationMBeanpublic void setCacheGzippedContent(boolean cacheGzippedContent)
WroConfigurationMBeansetCacheGzippedContent in interface WroConfigurationMBeancacheGzippedContent - the cacheGzippedContent to setpublic void destroy()
public String getEncoding()
getEncoding in interface WroConfigurationMBeanpublic void setEncoding(String encoding)
WroConfigurationMBeansetEncoding in interface WroConfigurationMBeanencoding - the encoding to setpublic String getWroManagerClassName()
public void setWroManagerClassName(String wroManagerClassName)
wroManagerClassName - the wroManagerClassName to setpublic String getMbeanName()
public void setMbeanName(String mbeanName)
mbeanName - the mbeanName to setpublic String getHeader()
public void setHeader(String header)
header - the header to setpublic int getConnectionTimeout()
getConnectionTimeout in interface WroConfigurationMBeanpublic void setConnectionTimeout(int connectionTimeout)
setConnectionTimeout in interface WroConfigurationMBeanconnectionTimeout - the connectionTimeout to setpublic boolean isParallelPreprocessing()
public void setParallelPreprocessing(boolean parallelPreprocessing)
parallelPreprocessing - the parallelPreprocessing to setpublic boolean isIgnoreEmptyGroup()
isIgnoreEmptyGroup in interface WroConfigurationMBeanpublic void setIgnoreEmptyGroup(boolean ignoreEmptyGroup)
setIgnoreEmptyGroup in interface WroConfigurationMBeanignoreEmptyGroup - flag for turning on/off failure when there is an empty group (nothing to process). This value is true by
default, meaning that empty group will produce empty result (no exception).public boolean isIgnoreFailingProcessor()
public void setIgnoreFailingProcessor(boolean ignoreFailingProcessor)
public final long getResourceWatcherUpdatePeriod()
getResourceWatcherUpdatePeriod in interface WroConfigurationMBeanpublic final void setResourceWatcherUpdatePeriod(long resourceWatcherUpdatePeriod)
WroConfigurationMBeansetResourceWatcherUpdatePeriod in interface WroConfigurationMBeanresourceWatcherUpdatePeriod - number of seconds. Zero or less, means never.public boolean isMinimizeEnabled()
isMinimizeEnabled in interface WroConfigurationMBeanpublic void setMinimizeEnabled(boolean minimizeEnabled)
setMinimizeEnabled in interface WroConfigurationMBeanminimizeEnabled - set to false to override minification settings on all resourcespublic boolean isResourceWatcherAsync()
public void setResourceWatcherAsync(boolean resourceWatcherAsync)
Copyright © 2008-2014. All Rights Reserved.