Class ResourceBuilder
java.lang.Object
org.apache.felix.utils.resource.ResourceBuilder
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceImplstatic ResourceImplstatic ResourceImplstatic ResourceImplbuild(ResourceImpl resource, String uri, Map<String, String> headerMap, boolean removeServiceRequirements) static List<org.osgi.resource.Capability> parseCapability(org.osgi.resource.Resource resource, String capability) parseDelimitedString(String value, String delim) 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)
-
Field Details
-
RESOLUTION_DYNAMIC
- See Also:
-
-
Method Details
-
build
public static ResourceImpl build(String uri, Map<String, String> headerMap) throws org.osgi.framework.BundleException- Throws:
org.osgi.framework.BundleException
-
build
public static ResourceImpl build(String uri, Map<String, String> headerMap, boolean removeServiceRequirements) throws org.osgi.framework.BundleException- Throws:
org.osgi.framework.BundleException
-
build
public static ResourceImpl build(ResourceImpl resource, String uri, Map<String, String> headerMap) throws org.osgi.framework.BundleException- Throws:
org.osgi.framework.BundleException
-
build
public static ResourceImpl build(ResourceImpl resource, String uri, Map<String, String> headerMap, boolean removeServiceRequirements) throws org.osgi.framework.BundleException- Throws:
org.osgi.framework.BundleException
-
parseRequirement
-
parseCapability
-
parseDelimitedString
-
parseDelimitedString
Parses delimited string and returns an array containing the tokens. This parser obeys quotes, so the delimiter character will be ignored if it is inside of a quote. This method assumes that the quote character is not included in the set of delimiter characters.- Parameters:
value- the delimited string to parse.delim- the characters delimiting the tokens.trim- true to trim the string, false else.- Returns:
- a list of string or an empty list if there are none.
-