Package org.ow2.easywsdl.schema.util
Class URILocationResolver
- java.lang.Object
-
- org.ow2.easywsdl.schema.util.URILocationResolver
-
public final class URILocationResolver extends Object
URI resolver used to resolve URI as URL, based on a base URI, to load external document.- Author:
- Christophe DENEUX - Capgemini Sud
-
-
Constructor Summary
Constructors Constructor Description URILocationResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLresolve(URI baseURI, URI uri)Resolve theuriaccording to thebaseURI.
-
-
-
Method Detail
-
resolve
public URL resolve(URI baseURI, URI uri) throws MalformedURLException
Resolve the
uriaccording to thebaseURI.If
baseURIisnull, the return value is theuriconverted intoURLusingURI.toURL(). Otherwise the return value is the result ofURL(URL, String).- Parameters:
baseURI- The baseURI.uri- TheURIto resolve.- Returns:
- The resolved URI as an
URL. - Throws:
MalformedURLException- The resolved URI is not a well-formed URL.
-
-