|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.AbstractDeploymentConfiguration
com.vaadin.server.DefaultDeploymentConfiguration
public class DefaultDeploymentConfiguration
The default implementation of DeploymentConfiguration based on a base
class for resolving system properties and a set of init parameters.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.server.DeploymentConfiguration |
|---|
DeploymentConfiguration.LegacyProperyToStringMode |
| Field Summary | |
|---|---|
static boolean |
DEFAULT_CLOSE_IDLE_SESSIONS
Default value for isCloseIdleSessions() = false . |
static int |
DEFAULT_HEARTBEAT_INTERVAL
Default value for getHeartbeatInterval() = 300 . |
static DeploymentConfiguration.LegacyProperyToStringMode |
DEFAULT_LEGACY_PROPERTY_TO_STRING
Default value for getLegacyPropertyToStringMode() =
LegacyProperyToStringMode#WARNING. |
static int |
DEFAULT_RESOURCE_CACHE_TIME
Default value for getResourceCacheTime() = 3600 . |
static boolean |
DEFAULT_SEND_URLS_AS_PARAMETERS
|
static boolean |
DEFAULT_SYNC_ID_CHECK
Default value for isSyncIdCheckEnabled() = true . |
| 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. |
DeploymentConfiguration.LegacyProperyToStringMode |
getLegacyPropertyToStringMode()
Deprecated. |
com.vaadin.shared.communication.PushMode |
getPushMode()
Returns the mode of bidirectional ("push") client-server communication that should be used. |
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 |
isCloseIdleSessions()
Returns whether a session should be closed when all its open UIs have been idle for longer than its configured maximum inactivity time. |
boolean |
isProductionMode()
Returns whether Vaadin is in production mode. |
boolean |
isSendUrlsAsParameters()
Returns whether the sending of URL's as GET and POST parameters in requests with content-type application/x-www-form-urlencoded
is enabled or not. |
boolean |
isSyncIdCheckEnabled()
Returns whether sync id checking is enabled. |
boolean |
isXsrfProtectionEnabled()
Returns whether cross-site request forgery protection is enabled. |
| Methods inherited from class com.vaadin.server.AbstractDeploymentConfiguration |
|---|
getClassLoaderName, getResourcesPath, getUIClassName, getUIProviderClassName, getWidgetset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_RESOURCE_CACHE_TIME
getResourceCacheTime() = 3600 .
public static final int DEFAULT_HEARTBEAT_INTERVAL
getHeartbeatInterval() = 300 .
public static final boolean DEFAULT_CLOSE_IDLE_SESSIONS
isCloseIdleSessions() = false .
public static final DeploymentConfiguration.LegacyProperyToStringMode DEFAULT_LEGACY_PROPERTY_TO_STRING
getLegacyPropertyToStringMode() =
LegacyProperyToStringMode#WARNING.
public static final boolean DEFAULT_SYNC_ID_CHECK
isSyncIdCheckEnabled() = true .
public static final boolean DEFAULT_SEND_URLS_AS_PARAMETERS
| 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
propertyName - 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()
public boolean isXsrfProtectionEnabled()
The default is true.
public int getResourceCacheTime()
The default interval is 3600 seconds (1 hour).
public int getHeartbeatInterval()
The default interval is 300 seconds (5 minutes).
public boolean isCloseIdleSessions()
A UI is idle if it is open on the client side but has no activity other
than heartbeat requests. If isCloseIdleSessions() == false,
heartbeat requests cause the session to stay open for as long as there
are open UIs on the client side. If it is true, the session is
eventually closed if the open UIs do not have any user interaction.
The default value is false.
WrappedSession.getMaxInactiveInterval()public boolean isSyncIdCheckEnabled()
The default value is true.
true if sync id checking is enabled;
false otherwisepublic boolean isSendUrlsAsParameters()
application/x-www-form-urlencoded
is enabled or not.
The default value is true.
false if set to false or true otherwisepublic com.vaadin.shared.communication.PushMode getPushMode()
The default mode is PushMode.DISABLED.
public java.util.Properties getInitParameters()
DeploymentConfiguration
@Deprecated public DeploymentConfiguration.LegacyProperyToStringMode getLegacyPropertyToStringMode()
DeploymentConfigurationAbstractProperty#isLegacyToStringEnabled() for more information.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||