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 |
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.
|
int |
getUIId()
Gets the UI id of the server-side UI associated with this client-side
instance.
|
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 |
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 |
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 |
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 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()
Copyright © 2000–2020 Vaadin Ltd. All rights reserved.