org.apache.wsif.wsdl
Class AuthenticatingProxyWSDLLocatorImpl

java.lang.Object
  extended by org.apache.wsif.wsdl.AuthenticatingProxyWSDLLocatorImpl
All Implemented Interfaces:
javax.wsdl.xml.WSDLLocator, ClosableLocator

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

Implementation of javax.wsdl.xml.WSDLLocator. This class can be used to locate a wsdl document behind an authenticating proxy.

Author:
Owen Burroughs

Constructor Summary
AuthenticatingProxyWSDLLocatorImpl(java.lang.String wsdlLoc, java.net.PasswordAuthentication pa)
          Create an instance of AuthenticatingProxyWSDLLocatorImpl.
AuthenticatingProxyWSDLLocatorImpl(java.lang.String docBaseURI, java.io.Reader docBaseReader, java.net.PasswordAuthentication pa)
          Create an instance of AuthenticatingProxyWSDLLocatorImpl.
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 or stream objects that have been created
 org.xml.sax.InputSource getBaseInputSource()
          Get an InputSource for the base wsdl document.
 java.io.Reader getBaseReader()
          Deprecated. Old WSDLLocator method, no longer on the interface
 java.lang.String getBaseURI()
          Get the document base uri for the base wsdl document
 org.xml.sax.InputSource getImportInputSource(java.lang.String base, java.lang.String relativeLocation)
          Get an InputSource for an imported wsdl document.
 java.io.Reader getImportReader(java.lang.String base, java.lang.String relativeLocation)
          Deprecated. Old WSDLLocator method, no longer on the interface
 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
Throws:
javax.wsdl.WSDLException

AuthenticatingProxyWSDLLocatorImpl

public AuthenticatingProxyWSDLLocatorImpl(java.lang.String wsdlLoc,
                                          java.net.PasswordAuthentication pa)
                                   throws javax.wsdl.WSDLException
Create an instance of AuthenticatingProxyWSDLLocatorImpl.

Parameters:
wsdlLoc - The uri for the base wsdl document
pa - Username and password encapsulated in a java.net.PasswordAuthentication
Throws:
javax.wsdl.WSDLException

AuthenticatingProxyWSDLLocatorImpl

public AuthenticatingProxyWSDLLocatorImpl(java.lang.String docBaseURI,
                                          java.io.Reader docBaseReader,
                                          java.net.PasswordAuthentication pa)
                                   throws javax.wsdl.WSDLException
Create an instance of AuthenticatingProxyWSDLLocatorImpl.

Parameters:
docBaseURI - The document base uri for the base wsdl document
docBaseReader - A Reader for reading the base wsdl document
pa - Username and password encapsulated in a java.net.PasswordAuthentication
Throws:
javax.wsdl.WSDLException
Method Detail

getBaseInputSource

public org.xml.sax.InputSource getBaseInputSource()
Get an InputSource for the base wsdl document. Returns null if the document cannot be located.

Specified by:
getBaseInputSource in interface javax.wsdl.xml.WSDLLocator
Returns:
The InputSource or null if the import cannot be resolved

getImportInputSource

public org.xml.sax.InputSource getImportInputSource(java.lang.String base,
                                                    java.lang.String relativeLocation)
Get an InputSource for an imported wsdl document. Returns null if the import document cannot be located.

Specified by:
getImportInputSource 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 InputSource or null if the import cannot be resolved

getBaseReader

public java.io.Reader getBaseReader()
Deprecated. Old WSDLLocator method, no longer on the interface


getImportReader

public java.io.Reader getImportReader(java.lang.String base,
                                      java.lang.String relativeLocation)
Deprecated. Old WSDLLocator method, no longer on the interface


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()
Close any Reader or stream objects that have been created

Specified by:
close in interface javax.wsdl.xml.WSDLLocator
Specified by:
close in interface ClosableLocator


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.