public class ApplicationConfiguration extends Object
This class is effectively immutable although setters exist to assign the values during construction.
| Constructor and Description |
|---|
ApplicationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationId()
Gets the id generated for the application.
|
String |
getAtmosphereJSVersion()
Gets the Atmosphere JavaScript version in use.
|
String |
getAtmosphereVersion()
Gets the Atmosphere runtime version in use.
|
String |
getContextRootUrl()
Gets the URL of the context root on the server.
|
String[] |
getExportedWebComponents()
Gets the exported web components.
|
String |
getFrontendRootUrl()
Gets the base URL of the frontend components on the server.
|
int |
getHeartbeatInterval()
Gets the interval for heartbeat requests.
|
String |
getLiveReloadBackend()
Gets the the live reload backend technology identifier.
|
String |
getLiveReloadUrl()
Gets the URL for the live reload websocket connection.
|
int |
getMaxMessageSuspendTimeout()
Gets the maximum message suspension delay.
|
String |
getServiceUrl()
Gets the URL to the server-side VaadinService.
|
String |
getServletVersion()
Gets the Vaadin servlet version in use.
|
ErrorMessage |
getSessionExpiredError()
Gets the message used when a session expiration error occurs.
|
String |
getSpringBootLiveReloadPort()
Gets the Spring boot live reload port.
|
int |
getUIId()
Gets the UI id of the server-side UI associated with this client-side
instance.
|
boolean |
isDevmodeGizmoEnabled()
Gets if development mode gizmo should be added to the page.
|
boolean |
isProductionMode()
Checks if we are running in production mode.
|
boolean |
isRequestTiming()
Checks if request timing info should be made available.
|
boolean |
isWebComponentMode()
Checks whether the application is running as a web-component in the page.
|
void |
setApplicationId(String applicationId)
Sets the id generated for the application.
|
void |
setAtmosphereJSVersion(String atmosphereJSVersion)
Sets the Atmosphere JavaScript version in use.
|
void |
setAtmosphereVersion(String atmosphereVersion)
Sets the Atmosphere runtime version in use.
|
void |
setContextRootUrl(String contextRootUrl)
Sets the URL of the context root on the server.
|
void |
setDevmodeGizmoEnabled(boolean devmodeGizmoEnabled)
Sets if development mode gizmo should be added to the page.
|
void |
setExportedWebComponents(String[] exportedWebComponents)
Sets the exported web components.
|
void |
setFrontendRootUrl(String frontendRootUrl)
Sets the base URL of the frontend components on the server.
|
void |
setHeartbeatInterval(int heartbeatInterval)
Sets the interval for heartbeat requests.
|
void |
setLiveReloadBackend(String liveReloadBackend)
Sets the live reload backend technology identifier.
|
void |
setLiveReloadUrl(String liveReloadUrl)
Sets the URL for the live reload websocket connection.
|
void |
setMaxMessageSuspendTimeout(int maxMessageSuspendTimeout)
Sets the maximum message suspension delay.
|
void |
setProductionMode(boolean productionMode)
Sets whether we are running in production mode.
|
void |
setRequestTiming(boolean requestTiming)
Sets whether request timing info should be made available.
|
void |
setServiceUrl(String serviceUrl)
Sets the URL to the server-side VaadinService.
|
void |
setServletVersion(String servletVersion)
Sets the Vaadin servlet version in use.
|
void |
setSessionExpiredError(ErrorMessage sessionExpiredError)
Sets the message used when a session expiration error occurs.
|
void |
setSpringBootLiveReloadPort(String springBootLiveReloadPort)
Sets the Spring boot live reload port.
|
void |
setUIId(int uiId)
Sets the UI id of the server-side UI associated with this client-side
instance.
|
void |
setWebComponentMode(boolean mode)
Sets whether the application is running as a web-component in the page.
|
public String getApplicationId()
public void setApplicationId(String applicationId)
applicationId - the id for the applicationpublic String getServiceUrl()
public void setServiceUrl(String serviceUrl)
serviceUrl - the URL to the server-side service as a stringpublic String getContextRootUrl()
public void setContextRootUrl(String contextRootUrl)
contextRootUrl - the URL of the context root, ending with a "/"public boolean isWebComponentMode()
public void setWebComponentMode(boolean mode)
mode - set to true if it's a WCpublic int getUIId()
public void setUIId(int uiId)
uiId - the UI idpublic int getHeartbeatInterval()
public void setHeartbeatInterval(int heartbeatInterval)
heartbeatInterval - The interval in seconds between heartbeat requests, or -1 if
heartbeat is disabled.public int getMaxMessageSuspendTimeout()
public void setMaxMessageSuspendTimeout(int maxMessageSuspendTimeout)
maxMessageSuspendTimeout - The maximum time, in milliseconds, to suspend out-of-order
messages waiting for their predecessor before resynchronizing.public ErrorMessage getSessionExpiredError()
public void setSessionExpiredError(ErrorMessage sessionExpiredError)
sessionExpiredError - the session expiration error messagepublic String getServletVersion()
public void setServletVersion(String servletVersion)
servletVersion - the Vaadin servlet version in usepublic String getAtmosphereVersion()
public void setAtmosphereVersion(String atmosphereVersion)
atmosphereVersion - the Atmosphere runtime version in usepublic String getAtmosphereJSVersion()
public void setAtmosphereJSVersion(String atmosphereJSVersion)
atmosphereJSVersion - the Atmosphere JavaScript version in usepublic boolean isProductionMode()
With production mode disabled, a lot more information is logged to the browser console. In production you should always enable production mode, because logging and other debug features can have a significant performance impact.
true if production mode is enabled, false
otherwisepublic boolean isRequestTiming()
true if request timing info should be made availble,
false otherwisepublic void setProductionMode(boolean productionMode)
With production mode disabled, a lot more information is logged to the browser console. In production you should always enable production mode, because logging and other debug features can have a significant performance impact.
productionMode - true if production mode is enabled, false
otherwisepublic void setRequestTiming(boolean requestTiming)
requestTiming - true if request timing info should be made available,
false otherwisepublic String getFrontendRootUrl()
public void setFrontendRootUrl(String frontendRootUrl)
frontendRootUrl - the base URL on the server for the frontend://
protocol.public void setExportedWebComponents(String[] exportedWebComponents)
exportedWebComponents - the exported web componentspublic String[] getExportedWebComponents()
public boolean isDevmodeGizmoEnabled()
public void setDevmodeGizmoEnabled(boolean devmodeGizmoEnabled)
devmodeGizmoEnabled - whether development mode gizmo should be addedpublic String getLiveReloadUrl()
public void setLiveReloadUrl(String liveReloadUrl)
liveReloadUrl - URL for the live reload websocket connectionpublic String getLiveReloadBackend()
public void setLiveReloadBackend(String liveReloadBackend)
liveReloadBackend - the live reload backend technology identifierpublic String getSpringBootLiveReloadPort()
public void setSpringBootLiveReloadPort(String springBootLiveReloadPort)
springBootLiveReloadPort - the Spring boot live reload portCopyright © 2000–2026 Vaadin Ltd. All rights reserved.