Package org.apache.cxf.common.util
Class URIParserUtil
- java.lang.Object
- 
- org.apache.cxf.common.util.URIParserUtil
 
- 
 public final class URIParserUtil extends Object 
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringescapeChars(String s)static StringgetAbsoluteURI(String arg)static Stringnormalize(String uri)static URL[]pathToURLs(String path)static Stringrelativize(String base, String toBeRelativized)static Stringrelativize(URI baseURI, URI toBeRelativizedURI)This is a custom implementation for doing what URI.relativize(URI uri) should be doing but is not actually doing when URI roots do not fully match.
 
- 
- 
- 
Method Detail- 
relativizepublic static String relativize(String base, String toBeRelativized) throws URISyntaxException - Throws:
- URISyntaxException
 
 - 
relativizepublic static String relativize(URI baseURI, URI toBeRelativizedURI) throws URISyntaxException This is a custom implementation for doing what URI.relativize(URI uri) should be doing but is not actually doing when URI roots do not fully match. See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6226081- Parameters:
- baseURI- The base URI
- toBeRelativizedURI- The URI to be relativized
- Returns:
- The string value of the URI you'd expect to get as result of calling baseURI.relativize(toBeRelativizedURI). null is returned if the parameters are null or are not both absolute or not absolute.
- Throws:
- URISyntaxException
 
 
- 
 
-