javax.wsdl.xml
Interface WSDLLocator


public interface WSDLLocator

This interface can act as an additional layer of indirection between a WSDLReader and the actual location of WSDL documents. One use could be to retrieve WSDL documents from JAR files, while still retaining the ability to resolve imported documents using relative URIs.

See Also:
WSDLReader.readWSDL(WSDLLocator)

Method Summary
 java.io.Reader getBaseReader()
          Returns a reader "pointed at" the base document.
 java.lang.String getBaseURI()
          Returns a URI representing the location of the base document.
 java.io.Reader getImportReader(java.lang.String parentLocation, java.lang.String relativeLocation)
          Returns a reader pointed at an imported wsdl document whose parent document was located at parentLocation and whose relative location to the parent document is specified by relativeLocation.
 java.lang.String getLatestImportURI()
          Returns a URI representing the location of the last import document to be resolved.
 

Method Detail

getBaseReader

public java.io.Reader getBaseReader()
Returns a reader "pointed at" the base document.

getImportReader

public java.io.Reader getImportReader(java.lang.String parentLocation,
                                      java.lang.String relativeLocation)
Returns a reader pointed at an imported wsdl document whose parent document was located at parentLocation and whose relative location to the parent document is specified by relativeLocation.
Parameters:
parentLocation - a URI specifying the location of the document doing the importing.
relativeLocation - a URI specifying the location of the document to import, relative to the parent document's location.

getBaseURI

public java.lang.String getBaseURI()
Returns a URI representing the location of the base document.

getLatestImportURI

public java.lang.String getLatestImportURI()
Returns a URI representing the location of the last import document to be resolved. This is useful when resolving nested imports.


Copyright © 2001 IBM. All Rights Reserved.