public interface VaadinResourceService
| Modifier and Type | Method and Description |
|---|---|
String |
getResourcePathPrefix()
Returns the prefix of the versioned namespace for the resources.
|
void |
publishResource(String resourceName,
org.osgi.service.http.HttpService httpService)
Register the resource with the given name under the
VaadinResourceService versioned namespace. |
void |
publishTheme(String themeName,
org.osgi.service.http.HttpService httpService)
Register the theme with the given name under the
VaadinResourceService versioned namespace. |
void |
publishWidgetset(String widgetsetName,
org.osgi.service.http.HttpService httpService)
Register the widgetset with the given name under the
VaadinResourceService versioned namespace. |
void publishTheme(String themeName, org.osgi.service.http.HttpService httpService) throws org.osgi.service.http.NamespaceException
VaadinResourceService 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 registrationvoid publishResource(String resourceName, org.osgi.service.http.HttpService httpService) throws org.osgi.service.http.NamespaceException
VaadinResourceService 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 registrationvoid publishWidgetset(String widgetsetName, org.osgi.service.http.HttpService httpService) throws org.osgi.service.http.NamespaceException
VaadinResourceService 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()
Copyright © 2017 Vaadin Ltd. All rights reserved.