|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.DefaultDeploymentConfiguration
public class DefaultDeploymentConfiguration
The default implementation of DeploymentConfiguration based on a base
class for resolving system properties and a set of init parameters.
| Constructor Summary | |
|---|---|
DefaultDeploymentConfiguration(java.lang.Class<?> systemPropertyBaseClass,
java.util.Properties initParameters)
Create a new deployment configuration instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getApplicationOrSystemProperty(java.lang.String propertyName,
java.lang.String defaultValue)
Gets a configured property. |
java.lang.String |
getApplicationProperty(java.lang.String parameterName)
Gets an application property value. |
int |
getHeartbeatInterval()
Returns the number of seconds between heartbeat requests of a UI, or a non-positive number if heartbeat is disabled. |
java.util.Properties |
getInitParameters()
Gets the properties configured for the deployment, e.g. |
int |
getResourceCacheTime()
Returns the time resources can be cached in the browsers, in seconds. |
protected java.lang.String |
getSystemProperty(java.lang.String parameterName)
Gets an system property value. |
boolean |
isIdleUICleanupEnabled()
Returns whether UIs that have no other activity than heartbeat requests should be removed from the session after they have been idle the maximum inactivity time enforced by the session. |
boolean |
isProductionMode()
Returns whether Vaadin is in production mode. |
boolean |
isXsrfProtectionEnabled()
Returns whether cross-site request forgery protection is enabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDeploymentConfiguration(java.lang.Class<?> systemPropertyBaseClass,
java.util.Properties initParameters)
systemPropertyBaseClass - the class that should be used as a basis when reading system
propertiesinitParameters - the init parameters that should make up the foundation for
this configuration| Method Detail |
|---|
public java.lang.String getApplicationOrSystemProperty(java.lang.String propertyName,
java.lang.String defaultValue)
DeploymentConfiguration
getApplicationOrSystemProperty in interface DeploymentConfigurationpropertyName - The simple of the property, in some contexts, lookup might be
performed using variations of the provided name.defaultValue - the default value that should be used if no value has been
defined
protected java.lang.String getSystemProperty(java.lang.String parameterName)
parameterName - the Name or the parameter.
public java.lang.String getApplicationProperty(java.lang.String parameterName)
parameterName - the Name or the parameter.
public boolean isProductionMode()
isProductionMode in interface DeploymentConfigurationpublic boolean isXsrfProtectionEnabled()
The default is true.
isXsrfProtectionEnabled in interface DeploymentConfigurationpublic int getResourceCacheTime()
The default interval is 3600 seconds (1 hour).
getResourceCacheTime in interface DeploymentConfigurationpublic int getHeartbeatInterval()
The default interval is 300 seconds (5 minutes).
getHeartbeatInterval in interface DeploymentConfigurationpublic boolean isIdleUICleanupEnabled()
DeploymentConfiguration
isIdleUICleanupEnabled in interface DeploymentConfigurationWrappedSession.getMaxInactiveInterval()public java.util.Properties getInitParameters()
DeploymentConfiguration
getInitParameters in interface DeploymentConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||