org.apache.juddi.v3.client.config
Class UDDIClient

java.lang.Object
  extended by org.apache.juddi.v3.client.config.UDDIClient

public class UDDIClient
extends Object


Constructor Summary
UDDIClient()
           
UDDIClient(String configurationFile)
          Manages the clerks.
UDDIClient(String configurationFile, Properties properties)
          Manages the clerks.
 
Method Summary
 UDDIClerk getClerk(String clerkName)
           
 ClientConfig getClientConfig()
           
 String getName()
           
 Transport getTransport()
           
 Transport getTransport(String nodeName)
          Returns the transport defined for the node with the given nodeName.
 void registerAnnotatedServices()
          Registers services to UDDI using a clerk, and the uddi.xml configuration.
 void registerWSDLs()
          Registers services to UDDI using a clerk, and the uddi.xml configuration.
 void restart()
           
 void saveClerkAndNodeInfo()
          Saves the clerk and node info from the uddi.xml to the home jUDDI registry.
 void start()
          Initializes the UDDI Clerk.
protected  void startEmbeddedServer()
           
 void stop()
          Stops the clerks.
protected  void stopEmbeddedServer()
           
 void unRegisterAnnotatedServices()
          Removes the service and all of its bindingTemplates of the annotated classes.
 void unRegisterBindingsOfAnnotatedServices(boolean removeServiceWithNoBindingTemplates)
          Removes the bindings of the services in the annotated classes.
 void unRegisterWSDLs()
           
 void xRegister()
          X-Register services listed in the uddi.xml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDDIClient

public UDDIClient()
           throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException

UDDIClient

public UDDIClient(String configurationFile)
           throws org.apache.commons.configuration.ConfigurationException
Manages the clerks. Initiates reading the client configuration from the uddi.xml.

Throws:
org.apache.commons.configuration.ConfigurationException

UDDIClient

public UDDIClient(String configurationFile,
                  Properties properties)
           throws org.apache.commons.configuration.ConfigurationException
Manages the clerks. Initiates reading the client configuration from the uddi.xml.

Throws:
org.apache.commons.configuration.ConfigurationException
Method Detail

stop

public void stop()
          throws org.apache.commons.configuration.ConfigurationException
Stops the clerks.

Throws:
org.apache.commons.configuration.ConfigurationException

start

public void start()
           throws org.apache.commons.configuration.ConfigurationException
Initializes the UDDI Clerk.

Throws:
org.apache.commons.configuration.ConfigurationException

startEmbeddedServer

protected void startEmbeddedServer()
                            throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException

stopEmbeddedServer

protected void stopEmbeddedServer()
                           throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException

restart

public void restart()
             throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException

saveClerkAndNodeInfo

public void saveClerkAndNodeInfo()
Saves the clerk and node info from the uddi.xml to the home jUDDI registry. This info is needed if you want to JUDDI Server to do XRegistration/"replication".


xRegister

public void xRegister()
X-Register services listed in the uddi.xml


registerAnnotatedServices

public void registerAnnotatedServices()
Registers services to UDDI using a clerk, and the uddi.xml configuration.


unRegisterAnnotatedServices

public void unRegisterAnnotatedServices()
Removes the service and all of its bindingTemplates of the annotated classes.

Throws:
TransportException
RemoteException

unRegisterBindingsOfAnnotatedServices

public void unRegisterBindingsOfAnnotatedServices(boolean removeServiceWithNoBindingTemplates)
Removes the bindings of the services in the annotated classes. Multiple nodes may register the same service using different BindingTempates. If the last BindingTemplate is removed the service can be removed as well.

Parameters:
removeServiceWithNoBindingTemplates - - if set to true it will remove the service if there are no other BindingTemplates.

getClientConfig

public ClientConfig getClientConfig()

getName

public String getName()

getTransport

public Transport getTransport()
                       throws org.apache.commons.configuration.ConfigurationException
Returns:
Throws:
org.apache.commons.configuration.ConfigurationException

getTransport

public Transport getTransport(String nodeName)
                       throws org.apache.commons.configuration.ConfigurationException
Returns the transport defined for the node with the given nodeName.

Parameters:
nodeName -
Returns:
Throws:
org.apache.commons.configuration.ConfigurationException

getClerk

public UDDIClerk getClerk(String clerkName)

registerWSDLs

public void registerWSDLs()
Registers services to UDDI using a clerk, and the uddi.xml configuration.

Throws:
javax.wsdl.WSDLException
TransportException
org.apache.commons.configuration.ConfigurationException
RemoteException

unRegisterWSDLs

public void unRegisterWSDLs()


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.