org.apache.woden.resolver
Interface URIResolver

All Known Implementing Classes:
SimpleURIResolver

public interface URIResolver

Implementations of this interface may be used to specify a custom URI resolver. Such an implementation can then be used to override the default Woden URI Resolver. To associate a URI resolver programmatically, the following should be called prior to parser invocation.

Example:
WSDLFactory factory = WSDLFactory.newInstance();
WSDLReader reader = factory.newWSDLReader();
// MyURIResolver implements this interface ...
URIResolver resolver = new MyURIResolver();
reader.setURIResolver(resolver);
...
// Then, can parse a document and the assigned resolver will be used internally...
Description desc = reader.readWSDL("http://myplace/mydoc.wsdl");

See Also:
WSDLFactory, WSDLReader

Method Summary
 java.net.URI resolveURI(java.net.URI uri)
          Implementation should return null if there is no resolution for the uri.
 

Method Detail

resolveURI

java.net.URI resolveURI(java.net.URI uri)
                        throws WSDLException,
                               java.io.IOException
Implementation should return null if there is no resolution for the uri.

Parameters:
uri - the uri to be resolved
Returns:
the resolved URI (or null if no resolution available)
Throws:
WSDLException
java.io.IOException


Copyright © 2007. All Rights Reserved.