public interface VaadinResourceService
| Modifier and Type | Method and Description |
|---|---|
String |
getContextName()
Returns the http servlet context name of Vaadin
|
String |
getResourcePathPrefix()
Returns the prefix of the versioned namespace for the resources.
|
void |
publishResource(String resourceName,
org.osgi.service.http.HttpService httpService)
Deprecated.
use OSGi DS services and register a
OsgiVaadinResource |
void |
publishTheme(String themeName,
org.osgi.service.http.HttpService httpService)
Deprecated.
use OSGi DS services and register a
OsgiVaadinTheme |
void |
publishWidgetset(String widgetsetName,
org.osgi.service.http.HttpService httpService)
Deprecated.
use OSGi DS services and register a
OsgiVaadinWidgetset |
@Deprecated void publishTheme(String themeName, org.osgi.service.http.HttpService httpService) throws org.osgi.service.http.NamespaceException
OsgiVaadinThemeVaadinResourceService versioned namespace. The theme folder is
expected to be compiled and under "/VAADIN/themes/" in the calling
bundle.
The theme will become accessible under the url
"/vaadin-x.x.x/VAADIN/themes/themeName" where x.x.x is the version of the
Vaadin Shared bundlethemeName - the name of the themehttpService - the HttpService instance for the calling bundleorg.osgi.service.http.NamespaceException - if there is a clash during the theme registration@Deprecated void publishResource(String resourceName, org.osgi.service.http.HttpService httpService) throws org.osgi.service.http.NamespaceException
OsgiVaadinResourceVaadinResourceService versioned namespace. The resource is
expected to be under "/VAADIN/" in the calling bundle.
The resource will become accessible under the url "/vaadin-x.x.x/VAADIN/"
where x.x.x is the version of the Vaadin Shared bundleresourceName - the name of the resourcehttpService - the HttpService instance for the calling bundleorg.osgi.service.http.NamespaceException - if there is a clash during the theme registration@Deprecated void publishWidgetset(String widgetsetName, org.osgi.service.http.HttpService httpService) throws org.osgi.service.http.NamespaceException
OsgiVaadinWidgetsetVaadinResourceService versioned namespace. The resource is
expected to be under "/VAADIN/widgetsets" in the calling bundle.
The resource will become accessible under the url
"/vaadin-x.x.x/VAADIN/widgetsets" where x.x.x is the version of the
Vaadin Shared bundlewidgetsetName - the name of the resourcehttpService - the HttpService instance for the calling bundleorg.osgi.service.http.NamespaceException - if there is a clash during the theme registrationString getResourcePathPrefix()
String getContextName()
Copyright © 2021 Vaadin Ltd. All rights reserved.