|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VaadinService
Provide deployment specific settings that are required outside terminal specific code.
| Method Summary | |
|---|---|
AddonContext |
getAddonContext()
|
java.util.Iterator<AddonContextListener> |
getAddonContextListeners()
|
java.io.File |
getBaseDirectory()
Returns application context base directory. |
java.lang.ClassLoader |
getClassLoader()
Get the class loader to use for loading classes loaded by name, e.g. |
java.lang.String |
getConfiguredTheme(WrappedRequest request)
Gets the theme that is configured for this deployment, e.g. |
java.lang.String |
getConfiguredWidgetset(WrappedRequest request)
Gets the widgetset that is configured for this deployment, e.g. |
DeploymentConfiguration |
getDeploymentConfiguration()
Gets the deployment configuration. |
java.lang.String |
getMimeType(java.lang.String resourceName)
Returns the MIME type of the specified file, or null if the MIME type is not known. |
java.lang.String |
getStaticFileLocation(WrappedRequest request)
Return the URL from where static files, e.g. |
SystemMessages |
getSystemMessages()
Gets the system messages object |
VaadinSession |
getVaadinSession(WrappedRequest request)
Gets the Vaadin session associated with this request. |
boolean |
isStandalone(WrappedRequest request)
Checks whether the Vaadin application will be rendered on its own in the browser or whether it will be included into some other context. |
void |
setAddonContext(AddonContext vaadinContext)
|
| Method Detail |
|---|
java.lang.String getStaticFileLocation(WrappedRequest request)
request - the request for which the location should be determined
java.lang.String getConfiguredWidgetset(WrappedRequest request)
request - the request for which a widgetset is required
java.lang.String getConfiguredTheme(WrappedRequest request)
request - the request for which a theme is required
boolean isStandalone(WrappedRequest request)
request - the request for which the application is loaded
java.lang.ClassLoader getClassLoader()
null indicates that the default class
loader should be used.
nulljava.lang.String getMimeType(java.lang.String resourceName)
resourceName - a String specifying the name of a file
ServletContext.getMimeType(String),
PortletContext.getMimeType(String)DeploymentConfiguration getDeploymentConfiguration()
java.util.Iterator<AddonContextListener> getAddonContextListeners()
AddonContext getAddonContext()
void setAddonContext(AddonContext vaadinContext)
SystemMessages getSystemMessages()
java.io.File getBaseDirectory()
VaadinSession getVaadinSession(WrappedRequest request)
request - the request to get a vaadin session for.
null if no
session is found and this is a request for which a new session
shouldn't be created.VaadinSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||