Package com.vaadin.osgi.resources
Interface VaadinResourceService
-
- All Known Implementing Classes:
VaadinResourceServiceImpl
public interface VaadinResourceServiceService used to publish themes, widgetsets and static resources at the root of a versioned namespaced /VAADIN/ folder.- Since:
- 8.1
- Author:
- Vaadin Ltd.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringgetContextName()Returns the http servlet context name of VaadinStringgetResourcePathPrefix()Returns the prefix of the versioned namespace for the resources.voidpublishResource(String resourceName, org.osgi.service.http.HttpService httpService)Deprecated.use OSGi DS services and register aOsgiVaadinResourcevoidpublishTheme(String themeName, org.osgi.service.http.HttpService httpService)Deprecated.use OSGi DS services and register aOsgiVaadinThemevoidpublishWidgetset(String widgetsetName, org.osgi.service.http.HttpService httpService)Deprecated.use OSGi DS services and register aOsgiVaadinWidgetset
-
-
-
Method Detail
-
publishTheme
@Deprecated void publishTheme(String themeName, org.osgi.service.http.HttpService httpService) throws org.osgi.service.http.NamespaceException
Deprecated.use OSGi DS services and register aOsgiVaadinThemeRegister the theme with the given name under theVaadinResourceServiceversioned 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 bundle- Parameters:
themeName- the name of the themehttpService- theHttpServiceinstance for the calling bundle- Throws:
org.osgi.service.http.NamespaceException- if there is a clash during the theme registration
-
publishResource
@Deprecated void publishResource(String resourceName, org.osgi.service.http.HttpService httpService) throws org.osgi.service.http.NamespaceException
Deprecated.use OSGi DS services and register aOsgiVaadinResourceRegister the resource with the given name under theVaadinResourceServiceversioned 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 bundle- Parameters:
resourceName- the name of the resourcehttpService- theHttpServiceinstance for the calling bundle- Throws:
org.osgi.service.http.NamespaceException- if there is a clash during the theme registration
-
publishWidgetset
@Deprecated void publishWidgetset(String widgetsetName, org.osgi.service.http.HttpService httpService) throws org.osgi.service.http.NamespaceException
Deprecated.use OSGi DS services and register aOsgiVaadinWidgetsetRegister the widgetset with the given name under theVaadinResourceServiceversioned 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 bundle- Parameters:
widgetsetName- the name of the resourcehttpService- theHttpServiceinstance for the calling bundle- Throws:
org.osgi.service.http.NamespaceException- if there is a clash during the theme registration
-
getResourcePathPrefix
String getResourcePathPrefix()
Returns the prefix of the versioned namespace for the resources. The result can't be null and is of the format "vaadin-x.x.x" where x.x.x the version of the Vaadin Shared bundle.- Returns:
- the prefix of the resources folder managed by this service
-
getContextName
String getContextName()
Returns the http servlet context name of Vaadin- Returns:
- the context name
-
-