toolbox.uddi
Class GenericUDDIManagerImpl

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

public class GenericUDDIManagerImpl
extends java.lang.Object
implements UDDIManager

The default UDDIManager implementation.


Constructor Summary
GenericUDDIManagerImpl()
          Default constructor.
 
Method Summary
 void destroy()
          Destroy this manager instance.
 void discardAuthenticationContext(AuthenticationContext ctx)
          Discard the given AuthenticationContext.
 InquiryProxy getInquiryProxy()
          Return the configured InquiryProxy instance.
 java.lang.String getName()
          Return the name of this manager.
 PublicationProxy getPublicationProxy()
          Return the configured PublicationProxy instance.
 SecurityProxy getSecurityProxy()
          Return the configured SecurityProxy instance.
 ServiceInfo getServiceInfo(java.lang.String name)
          Return the named ServiceInfo instance.
 void init(java.lang.String name, XMLProperties xmlProps)
          Initialise this manager with the given name and XML configuration properties.
 AuthenticationContext newAuthenticationContext()
          Create a new AuthenticationContext instance.
 AuthenticationContext newAuthenticationContext(java.lang.String user, java.lang.String passwd)
          Create a new AuthenticationContext instance using the given user and password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericUDDIManagerImpl

public GenericUDDIManagerImpl()
Default constructor.

Method Detail

init

public void init(java.lang.String name,
                 XMLProperties xmlProps)
          throws UDDIException
Initialise this manager with the given name and XML configuration properties.

Specified by:
init in interface UDDIManager
Parameters:
name - The name of this manager.
xmlProps - XMLProperties instance containing the manager configuration.
Throws:
UDDIException - if the manager cannot be initialised.

getSecurityProxy

public SecurityProxy getSecurityProxy()
Return the configured SecurityProxy instance.

Specified by:
getSecurityProxy in interface UDDIManager
Returns:
SecurityProxy instance.

getInquiryProxy

public InquiryProxy getInquiryProxy()
Return the configured InquiryProxy instance.

Specified by:
getInquiryProxy in interface UDDIManager
Returns:
InquiryProxy instance.

getPublicationProxy

public PublicationProxy getPublicationProxy()
Return the configured PublicationProxy instance.

Specified by:
getPublicationProxy in interface UDDIManager
Returns:
PublicationProxy instance.

getServiceInfo

public ServiceInfo getServiceInfo(java.lang.String name)
Return the named ServiceInfo instance.

Specified by:
getServiceInfo in interface UDDIManager
Parameters:
name - String containing the name of the ServiceInfo that must be returned.
Returns:
ServiceInfo instance of null if it does not exist.

newAuthenticationContext

public AuthenticationContext newAuthenticationContext()
                                               throws UDDIException
Create a new AuthenticationContext instance.

Specified by:
newAuthenticationContext in interface UDDIManager
Returns:
AuthenticationContext instance.
Throws:
UDDIException - if the context cannot be created.

newAuthenticationContext

public AuthenticationContext newAuthenticationContext(java.lang.String user,
                                                      java.lang.String passwd)
                                               throws UDDIException
Create a new AuthenticationContext instance using the given user and password

Specified by:
newAuthenticationContext in interface UDDIManager
Parameters:
user - User id to use.
passwd - Passwword to use.
Returns:
AuthenticationContext instance.
Throws:
UDDIException - if the context cannot be created.

discardAuthenticationContext

public void discardAuthenticationContext(AuthenticationContext ctx)
Discard the given AuthenticationContext.

Specified by:
discardAuthenticationContext in interface UDDIManager
Parameters:
ctx - AuthenticationContext to discard.

getName

public java.lang.String getName()
Return the name of this manager.

Specified by:
getName in interface UDDIManager
Returns:
String containing the name of this manager.

destroy

public void destroy()
Destroy this manager instance.

Specified by:
destroy in interface UDDIManager