| java.lang.Object org.apache.openejb.util.URISupport
URISupport | public class URISupport (Code) | | Swiped verbatim from ActiveMQ... the URI kings.
URI relativize(URI, URI) added afterwards to deal with the
non-functional URI.relativize(URI) method
|
Inner Class :public static class CompositeData | |
checkParenthesis | public static boolean checkParenthesis(String str)(Code) | | |
indexOfParenthesisMatch | public int indexOfParenthesisMatch(String str)(Code) | | |
relativize | public static URI relativize(URI a, URI b)(Code) | | 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));
Parameters: a - Parameters: b - relative b |
|
|