public class WebResourceContainerImpl extends Object implements WebResourceContainer
WebResources.| Constructor and Description |
|---|
WebResourceContainerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addWebResource(WebResourceImpl webResource)
Adds a new
WebResource to the container. |
Optional<WebResource> |
findWebResource(String lib,
String resourceName,
Optional<String> version)
Finding a
WebResource. |
void |
removeBundle(org.osgi.framework.Bundle bundle)
Removing all of the
WebResources that belong to a specific Bundle from the
container. |
public void addWebResource(WebResourceImpl webResource)
WebResource to the container.webResource - The WebResource.public Optional<WebResource> findWebResource(String lib, String resourceName, Optional<String> version)
WebResourceContainerWebResource.findWebResource in interface WebResourceContainerlib - Name of the library where the resource is located.resourceName - Name of the resource / file.version - A version range to identify the web resource or Optional.empty() to accept any
version.public void removeBundle(org.osgi.framework.Bundle bundle)
WebResources that belong to a specific Bundle from the
container.bundle - The Bundle whose WebResources should be removed from the container.Copyright © 2011–2020 Everit Kft.. All rights reserved.