toolbox.uddi
Class InquiryProxyJUDDIImpl

Package class diagram package InquiryProxyJUDDIImpl
java.lang.Object
  extended by toolbox.uddi.InquiryProxyJUDDIImpl
All Implemented Interfaces:
InquiryProxy

public class InquiryProxyJUDDIImpl
extends java.lang.Object
implements InquiryProxy

InquiryProxy implementation to interact with the Apache jUDDI Service Registry.


Constructor Summary
InquiryProxyJUDDIImpl()
          Default constructor.
 
Method Summary
 void destroy()
          Destroy this proxy instance.
 ServiceInfo findServiceInfo(java.lang.String provider, java.lang.String serviceName, java.lang.String namespace, java.lang.String portName)
          Search for a WSDL based service using the given parameters.
 ServiceInfo findServiceInfo(java.lang.String provider, java.lang.String serviceName, java.lang.String namespace, java.lang.String portName, AuthenticationContext ctx)
          Search for a WSDL based service using the given parameters and AuthenticationContext.
 java.lang.String getProviderKey(java.lang.String providerName)
          Return the UDDI key of the named provider (business).
 java.lang.String getProviderKey(java.lang.String providerName, AuthenticationContext ctx)
          Return the UDDI key of the named provider (business).
 void init(UDDIManager manager, java.util.Map props)
          Initialise this proxy with the given manager and configuration properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InquiryProxyJUDDIImpl

public InquiryProxyJUDDIImpl()
Default constructor.

Method Detail

init

public void init(UDDIManager manager,
                 java.util.Map props)
          throws UDDIException
Initialise this proxy with the given manager and configuration properties.

The propertiees map must contain the following keys:

Specified by:
init in interface InquiryProxy
Parameters:
manager - UDDIManager that created this proxy.
props - Map containing configuration properties.
Throws:
UDDIException - if the manager cannot be initialised.

findServiceInfo

public ServiceInfo findServiceInfo(java.lang.String provider,
                                   java.lang.String serviceName,
                                   java.lang.String namespace,
                                   java.lang.String portName)
                            throws UDDIException
Search for a WSDL based service using the given parameters.

Specified by:
findServiceInfo in interface InquiryProxy
Parameters:
provider - String containing the name of the service provider.
serviceName - String containing the name of the service.
namespace - String containing the XML namespace of the service.
portName - String containing the service port name.
Returns:
ServiceInfo instance or null if the service does not exist.
Throws:
UDDIException - if the search cannot be performed.

findServiceInfo

public ServiceInfo findServiceInfo(java.lang.String provider,
                                   java.lang.String serviceName,
                                   java.lang.String namespace,
                                   java.lang.String portName,
                                   AuthenticationContext ctx)
                            throws UDDIException
Search for a WSDL based service using the given parameters and AuthenticationContext.

Specified by:
findServiceInfo in interface InquiryProxy
Parameters:
provider - String containing the name of the service provider.
serviceName - String containing the name of the service.
namespace - String containing the XML namespace of the service.
portName - String containing the service port name.
ctx - AuthenticationContext instance to use.
Returns:
ServiceInfo instance or null if the service does not exist.
Throws:
UDDIException - if the search cannot be performed.

getProviderKey

public java.lang.String getProviderKey(java.lang.String providerName)
                                throws UDDIException
Return the UDDI key of the named provider (business).

Specified by:
getProviderKey in interface InquiryProxy
Parameters:
providerName - String containing the provider name.
Returns:
String containing the UDDI key of the provider.
Throws:
UDDIException - if an exception occurs during lookup.

getProviderKey

public java.lang.String getProviderKey(java.lang.String providerName,
                                       AuthenticationContext ctx)
                                throws UDDIException
Return the UDDI key of the named provider (business).

Specified by:
getProviderKey in interface InquiryProxy
Parameters:
providerName - String containing the provider name.
ctx - AuthenticationContext instance to use.
Returns:
String containing the UDDI key of the provider.
Throws:
UDDIException - if an exception occurs during lookup.

destroy

public void destroy()
Destroy this proxy instance.

Specified by:
destroy in interface InquiryProxy