org.apache.wsif.wsdl
Class AuthenticatingProxyWSDLLocatorImpl

java.lang.Object
  |
  +--org.apache.wsif.wsdl.AuthenticatingProxyWSDLLocatorImpl
All Implemented Interfaces:
javax.wsdl.xml.WSDLLocator

public class AuthenticatingProxyWSDLLocatorImpl
extends java.lang.Object
implements javax.wsdl.xml.WSDLLocator

Implementation of javax.wsdl.xml.WSDLLocator. This class can be used to locate a wsdl document behind an authenticating proxy. Only http and ftp urls for the wsdl location are supported.

Author:
Owen Burroughs

Constructor Summary
AuthenticatingProxyWSDLLocatorImpl(java.lang.String wsdlLoc, java.lang.String un, java.lang.String passwd)
          Create an instance of AuthenticatingProxyWSDLLocatorImpl.
 
Method Summary
 void close()
          Close any Reader objects that have been created
 java.io.Reader getBaseReader()
          Get a reader for the base wsdl document.
 java.lang.String getBaseURI()
          Get the document base uri for the base wsdl document
 java.io.Reader getImportReader(java.lang.String base, java.lang.String relativeLocation)
          Get a reader for an imported wsdl document.
 java.lang.String getLatestImportURI()
          Get the document base uri for the last import document to be resolved by this locator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticatingProxyWSDLLocatorImpl

public AuthenticatingProxyWSDLLocatorImpl(java.lang.String wsdlLoc,
                                          java.lang.String un,
                                          java.lang.String passwd)
                                   throws javax.wsdl.WSDLException
Create an instance of AuthenticatingProxyWSDLLocatorImpl.
Parameters:
wsdlLoc - The uri for the base wsdl document
un - The username for proxy authentication
passed - The password for proxy authentication
Method Detail

getBaseReader

public java.io.Reader getBaseReader()
Get a reader for the base wsdl document. Returns null if the document cannot be located.
Specified by:
getBaseReader in interface javax.wsdl.xml.WSDLLocator
Returns:
The reader or null if the import cannot be resolved

getImportReader

public java.io.Reader getImportReader(java.lang.String base,
                                      java.lang.String relativeLocation)
Get a reader for an imported wsdl document. Returns null if the import document cannot be located.
Specified by:
getImportReader in interface javax.wsdl.xml.WSDLLocator
Parameters:
base - The document base uri for the parent wsdl document
relativeLocation - The relative uri of the import wsdl document
Returns:
The reader or null if the import cannot be resolved

getBaseURI

public java.lang.String getBaseURI()
Get the document base uri for the base wsdl document
Specified by:
getBaseURI in interface javax.wsdl.xml.WSDLLocator
Returns:
The document base uri

getLatestImportURI

public java.lang.String getLatestImportURI()
Get the document base uri for the last import document to be resolved by this locator. This is useful if resolving imports within imports.
Specified by:
getLatestImportURI in interface javax.wsdl.xml.WSDLLocator
Returns:
The document base uri

close

public void close()
           throws java.io.IOException
Close any Reader objects that have been created
Throws:
java.io.IOException - If a call to close() on one of the Reader objects fails


Copyright © 2002, 2002 Apache XML Project. All Rights Reserved.