public interface DeploymentConfiguration extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
DeploymentConfiguration.LegacyProperyToStringMode
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getApplicationOrSystemProperty(String propertyName,
String defaultValue)
Gets a configured property.
|
String |
getClassLoaderName()
Gets class loader configuration option value.
|
int |
getHeartbeatInterval()
Returns the number of seconds between heartbeat requests of a UI, or a
non-positive number if heartbeat is disabled.
|
Properties |
getInitParameters()
Gets the properties configured for the deployment, e.g.
|
DeploymentConfiguration.LegacyProperyToStringMode |
getLegacyPropertyToStringMode()
Deprecated.
|
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.
|
String |
getResourcesPath()
Gets resources path configuration option value.
|
String |
getUIClassName()
Gets UI class configuration option value.
|
String |
getUIProviderClassName()
Gets UI provider class configuration option value.
|
String |
getWidgetset(String defaultValue)
Gets Widgetset configuration option 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.
|
boolean isProductionMode()
boolean isXsrfProtectionEnabled()
boolean isSyncIdCheckEnabled()
true
if sync id checking is enabled;
false
otherwiseint getResourceCacheTime()
int getHeartbeatInterval()
boolean isSendUrlsAsParameters()
application/x-www-form-urlencoded
is enabled or not.false
if set to false or true
otherwiseboolean 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.
WrappedSession.getMaxInactiveInterval()
PushMode getPushMode()
Properties getInitParameters()
String getApplicationOrSystemProperty(String propertyName, String defaultValue)
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
definedString getUIClassName()
String getUIProviderClassName()
String getWidgetset(String defaultValue)
defaultValue
is
returned if widgetset parameter is not configured.String getResourcesPath()
String getClassLoaderName()
@Deprecated DeploymentConfiguration.LegacyProperyToStringMode getLegacyPropertyToStringMode()
AbstractProperty#isLegacyToStringEnabled()
for more information.Copyright © 2019 Vaadin Ltd. All rights reserved.