public class URISupport extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
URISupport.CompositeData |
| Constructor and Description |
|---|
URISupport() |
| Modifier and Type | Method and Description |
|---|---|
static URI |
changeScheme(URI bindAddr,
String scheme) |
static boolean |
checkParenthesis(String str) |
static String |
createQueryString(Map options) |
static URI |
createRemainingURI(URI originalURI,
Map params)
Creates a URI from the original URI and the remaining paramaters
|
static URI |
createURIWithQuery(URI uri,
String query)
Creates a URI with the given query
|
int |
indexOfParenthesisMatch(String str) |
static URISupport.CompositeData |
parseComposite(URI uri) |
static Map<String,String> |
parseParamters(URI uri) |
static Map<String,String> |
parseQuery(String uri) |
static URI |
relativize(URI a,
URI b)
URI absoluteA = new URI("/Users/dblevins/work/openejb3/container/openejb-jee/apple/");
URI absoluteB = new URI("/Users/dblevins/work/openejb3/container/openejb-core/foo.jar");
URI relativeB = URISupport.relativize(absoluteA, absoluteB);
assertEquals("../../openejb-core/foo.jar", relativeB.toString());
URI resolvedB = absoluteA.resolve(relativeB);
assertTrue(resolvedB.equals(absoluteB));
|
static URI |
removeQuery(URI uri)
Removes any URI query from the given uri
|
static String |
stripPrefix(String value,
String prefix) |
static URI |
stripScheme(URI uri) |
public static URI relativize(URI a, URI b)
a - b - public static Map<String,String> parseQuery(String uri) throws URISyntaxException
URISyntaxExceptionpublic static Map<String,String> parseParamters(URI uri) throws URISyntaxException
URISyntaxExceptionpublic static URI removeQuery(URI uri) throws URISyntaxException
URISyntaxExceptionpublic static URI createURIWithQuery(URI uri, String query) throws URISyntaxException
URISyntaxExceptionpublic static URISupport.CompositeData parseComposite(URI uri) throws URISyntaxException
URISyntaxExceptionpublic static URI stripScheme(URI uri) throws URISyntaxException
URISyntaxExceptionpublic static String createQueryString(Map options) throws URISyntaxException
URISyntaxExceptionpublic static URI createRemainingURI(URI originalURI, Map params) throws URISyntaxException
URISyntaxExceptionpublic static URI changeScheme(URI bindAddr, String scheme) throws URISyntaxException
URISyntaxExceptionpublic static boolean checkParenthesis(String str)
public int indexOfParenthesisMatch(String str)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.