public final class ResourceBuilder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RESOLUTION_DYNAMIC |
Modifier and Type | Method and Description |
---|---|
static ResourceImpl |
build(ResourceImpl resource,
String uri,
Map<String,String> headerMap) |
static ResourceImpl |
build(ResourceImpl resource,
String uri,
Map<String,String> headerMap,
boolean removeServiceRequirements) |
static ResourceImpl |
build(String uri,
Map<String,String> headerMap) |
static ResourceImpl |
build(String uri,
Map<String,String> headerMap,
boolean removeServiceRequirements) |
static List<org.osgi.resource.Capability> |
parseCapability(org.osgi.resource.Resource resource,
String capability) |
static List<String> |
parseDelimitedString(String value,
String delim) |
static List<String> |
parseDelimitedString(String value,
String delim,
boolean trim)
Parses delimited string and returns an array containing the tokens.
|
static List<org.osgi.resource.Requirement> |
parseRequirement(org.osgi.resource.Resource resource,
String requirement) |
public static final String RESOLUTION_DYNAMIC
public static ResourceImpl build(String uri, Map<String,String> headerMap) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static ResourceImpl build(String uri, Map<String,String> headerMap, boolean removeServiceRequirements) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static ResourceImpl build(ResourceImpl resource, String uri, Map<String,String> headerMap) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static ResourceImpl build(ResourceImpl resource, String uri, Map<String,String> headerMap, boolean removeServiceRequirements) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static List<org.osgi.resource.Requirement> parseRequirement(org.osgi.resource.Resource resource, String requirement) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static List<org.osgi.resource.Capability> parseCapability(org.osgi.resource.Resource resource, String capability) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static List<String> parseDelimitedString(String value, String delim, boolean trim)
value
- the delimited string to parse.delim
- the characters delimiting the tokens.trim
- true to trim the string, false else.Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.