com.sun.xml.registry.uddi
Class RegistryServiceImpl

java.lang.Object
  extended by com.sun.xml.registry.uddi.RegistryServiceImpl
All Implemented Interfaces:
RegistryService

public class RegistryServiceImpl
extends Object
implements RegistryService

Implementation class for RegistryService

Author:
Farrukh S. Najmi
See Also:
RegistryService

Method Summary
 BulkResponse getBulkResponse(String requestId)
          Returns the BulkResponse associated with specified requestId.
 BusinessLifeCycleManager getBusinessLifeCycleManager()
          Returns the BusinessLifeCycleManager interface implemented by the JAXR provider
 BusinessQueryManager getBusinessQueryManager()
          Returns the BusinessQueryManager interface implemented by the JAXR provider
 CapabilityProfile getCapabilityProfile()
          Returns the CapabilityProfile for the JAXR provider
 ConnectionImpl getConnection()
           
 String getCurrentUser()
           
 DeclarativeQueryManager getDeclarativeQueryManager()
          Returns the DeclarativeQueryManager interface implemented by the JAXR provider Capbility level 0 registries should throws UnsupportedCapabilityException.
 ClassificationScheme getDefaultPostalScheme()
          Gets the default user-defined postal scheme for codifying the attributes of PostalAddress.
 LifeCycleManager getLifeCycleManager()
          Returns the basic LifeCycleManager interface implemented by the JAXR provider
 UDDIObjectCache getObjectManager()
           
 String getServiceId()
           
 UDDIMapper getUDDIMapper()
           
 SOAPBody jaxmSend(SOAPMessage msg, boolean secure)
           
 String makeRegistrySpecificRequest(String request)
          This method takes a String that is an XML request in a registry specific format.
 Node send(SOAPMessage doc, boolean secure)
          Currently, default is to use jaxm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUDDIMapper

public UDDIMapper getUDDIMapper()

getServiceId

public String getServiceId()

getObjectManager

public UDDIObjectCache getObjectManager()

getCapabilityProfile

public CapabilityProfile getCapabilityProfile()
                                       throws JAXRException
Returns the CapabilityProfile for the JAXR provider

Specified by:
getCapabilityProfile in interface RegistryService
Returns:
the CapabilityProfile for a JAXR provider
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
<{LifeCycleManager}>

getBusinessLifeCycleManager

public BusinessLifeCycleManager getBusinessLifeCycleManager()
                                                     throws JAXRException
Returns the BusinessLifeCycleManager interface implemented by the JAXR provider

Specified by:
getBusinessLifeCycleManager in interface RegistryService
Returns:
the BusinessLifeCycleManager
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
<{LifeCycleManager}>

getBusinessQueryManager

public BusinessQueryManager getBusinessQueryManager()
                                             throws JAXRException
Returns the BusinessQueryManager interface implemented by the JAXR provider

Specified by:
getBusinessQueryManager in interface RegistryService
Returns:
the BusinessQueryManaer
Throws:
JAXRException - If the JAXR provider encounters an internal error

getLifeCycleManager

public LifeCycleManager getLifeCycleManager()
                                     throws JAXRException
Returns the basic LifeCycleManager interface implemented by the JAXR provider

Capability Level: 0

Throws:
JAXRException

getDeclarativeQueryManager

public DeclarativeQueryManager getDeclarativeQueryManager()
                                                   throws JAXRException,
                                                          UnsupportedCapabilityException
Returns the DeclarativeQueryManager interface implemented by the JAXR provider Capbility level 0 registries should throws UnsupportedCapabilityException.

Capability Level: 1

Specified by:
getDeclarativeQueryManager in interface RegistryService
Returns:
the DeclarativeQueryManager
Throws:
JAXRException - If the JAXR provider encounters an internal error
UnsupportedCapabilityException

makeRegistrySpecificRequest

public String makeRegistrySpecificRequest(String request)
                                   throws JAXRException
This method takes a String that is an XML request in a registry specific format. It sends the request to the registry and returns a String that is the registry specific XML response.

Capability Level: 0

Specified by:
makeRegistrySpecificRequest in interface RegistryService
Parameters:
request - the registry-specific request in a String representation
Returns:
String that is the XML response in a registry specific manner.
Throws:
JAXRException - If the JAXR provider encounters an internal error

getDefaultPostalScheme

public ClassificationScheme getDefaultPostalScheme()
                                            throws JAXRException
Description copied from interface: RegistryService
Gets the default user-defined postal scheme for codifying the attributes of PostalAddress.

Capability Level: 0

Specified by:
getDefaultPostalScheme in interface RegistryService
Returns:
the ClassificationScheme that is the default postal scheme
Throws:
JAXRException - If the JAXR provider encounters an internal error

getBulkResponse

public BulkResponse getBulkResponse(String requestId)
                             throws JAXRException
Returns the BulkResponse associated with specified requestId. Throws JAXRException if no responses exist for specified requestId.

Specified by:
getBulkResponse in interface RegistryService
Parameters:
requestId - the id for a previous asynchronous request
Returns:
the BulkResponse that contains the result for the specified request
Throws:
InvalidRequestException - if no responses exist for specified requestId
JAXRException - If the JAXR provider encounters an internal error

getConnection

public ConnectionImpl getConnection()

jaxmSend

public SOAPBody jaxmSend(SOAPMessage msg,
                         boolean secure)
                  throws JAXRException
Throws:
JAXRException

send

public Node send(SOAPMessage doc,
                 boolean secure)
          throws JAXRException
Currently, default is to use jaxm. Can use soap4j by setting "useSOAP" property to true on connection factory or with -DuseSOAP=true for all connections. This is temporary while we're working on jaxm issues.

Throws:
JAXRException

getCurrentUser

public String getCurrentUser()


Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.