org.apache.juddi.proxy
Class RegistryProxy

java.lang.Object
  extended by org.apache.juddi.AbstractRegistry
      extended by org.apache.juddi.proxy.RegistryProxy
All Implemented Interfaces:
IRegistry

public class RegistryProxy
extends AbstractRegistry

Represents a version 2.0 UDDI registry and implements all services as specified in the v2.0 specification.

Author:
Steve Viens (sviens@apache.org)

Field Summary
static java.lang.String ADMIN_ENDPOINT_PROPERTY_NAME
           
static java.lang.String DEFAULT_ADMIN_ENDPOINT
           
static java.lang.String DEFAULT_INQUIRY_ENDPOINT
           
static java.lang.String DEFAULT_PROTOCOL_HANDLER
           
static java.lang.String DEFAULT_PUBLISH_ENDPOINT
           
static java.lang.String DEFAULT_SECURITY_PROVIDER
           
static java.lang.String DEFAULT_TRANSPORT_CLASS
           
static java.lang.String DEFAULT_UDDI_NAMESPACE
           
static java.lang.String DEFAULT_UDDI_VERSION
           
static java.lang.String INQUIRY_ENDPOINT_PROPERTY_NAME
           
static java.lang.String PROTOCOL_HANDLER_PROPERTY_NAME
           
static java.lang.String PUBLISH_ENDPOINT_PROPERTY_NAME
           
static java.lang.String SECURITY_PROVIDER_PROPERTY_NAME
           
static java.lang.String TRANSPORT_CLASS_PROPERTY_NAME
           
static java.lang.String UDDI_NAMESPACE_PROPERTY_NAME
           
static java.lang.String UDDI_VERSION_PROPERTY_NAME
           
 
Fields inherited from interface org.apache.juddi.IRegistry
JUDDI_V1_GENERIC, JUDDI_V1_NAMESPACE, UDDI_V1_GENERIC, UDDI_V1_NAMESPACE, UDDI_V2_GENERIC, UDDI_V2_NAMESPACE, UDDI_V3_GENERIC, UDDI_V3_NAMESPACE
 
Constructor Summary
RegistryProxy()
          Create a new instance of RegistryProxy.
RegistryProxy(java.util.Properties props)
          Creates a new instance of RegistryProxy.
 
Method Summary
 RegistryObject execute(RegistryObject uddiRequest)
           
 java.lang.String execute(java.lang.String uddiRequest, java.lang.String urltype)
           
 java.net.URL getAdminURL()
           
 java.net.URL getInquiryURL()
           
 java.lang.String getProtocolHandler()
           
 java.net.URL getPublishURL()
           
 java.lang.String getSecurityProvider()
           
 Transport getTransport()
           
 Transport getTransport(java.lang.String className)
          Returns an implementation of Transport based on the className passed in.
 java.lang.String getUddiNamespace()
           
 java.lang.String getUddiVersion()
           
static void main(java.lang.String[] args)
           
 void setAdminURL(java.net.URL url)
           
 void setInquiryURL(java.net.URL url)
           
 void setProtocolHandler(java.lang.String protoHandler)
           
 void setPublishURL(java.net.URL url)
           
 void setSecurityProvider(java.lang.String secProvider)
           
 void setTransport(Transport transport)
           
 void setUddiNamespace(java.lang.String uddiNS)
           
 void setUddiVersion(java.lang.String uddiVer)
           
 
Methods inherited from class org.apache.juddi.AbstractRegistry
addPublisherAssertions, deleteBinding, deleteBusiness, deletePublisher, deletePublisherAssertions, deleteService, deleteTModel, discardAuthToken, findBinding, findBusiness, findPublisher, findRelatedBusinesses, findService, findTModel, getAssertionStatusReport, getAuthToken, getBindingDetail, getBindingDetail, getBusinessDetail, getBusinessDetail, getBusinessDetailExt, getBusinessDetailExt, getPublisherAssertions, getPublisherDetail, getRegisteredInfo, getRegistryInfo, getServiceDetail, getServiceDetail, getTModelDetail, getTModelDetail, saveBinding, saveBusiness, savePublisher, saveService, saveTModel, setPublisherAssertions, validateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INQUIRY_ENDPOINT_PROPERTY_NAME

public static final java.lang.String INQUIRY_ENDPOINT_PROPERTY_NAME
See Also:
Constant Field Values

PUBLISH_ENDPOINT_PROPERTY_NAME

public static final java.lang.String PUBLISH_ENDPOINT_PROPERTY_NAME
See Also:
Constant Field Values

ADMIN_ENDPOINT_PROPERTY_NAME

public static final java.lang.String ADMIN_ENDPOINT_PROPERTY_NAME
See Also:
Constant Field Values

TRANSPORT_CLASS_PROPERTY_NAME

public static final java.lang.String TRANSPORT_CLASS_PROPERTY_NAME
See Also:
Constant Field Values

SECURITY_PROVIDER_PROPERTY_NAME

public static final java.lang.String SECURITY_PROVIDER_PROPERTY_NAME
See Also:
Constant Field Values

PROTOCOL_HANDLER_PROPERTY_NAME

public static final java.lang.String PROTOCOL_HANDLER_PROPERTY_NAME
See Also:
Constant Field Values

UDDI_VERSION_PROPERTY_NAME

public static final java.lang.String UDDI_VERSION_PROPERTY_NAME
See Also:
Constant Field Values

UDDI_NAMESPACE_PROPERTY_NAME

public static final java.lang.String UDDI_NAMESPACE_PROPERTY_NAME
See Also:
Constant Field Values

DEFAULT_INQUIRY_ENDPOINT

public static final java.lang.String DEFAULT_INQUIRY_ENDPOINT
See Also:
Constant Field Values

DEFAULT_PUBLISH_ENDPOINT

public static final java.lang.String DEFAULT_PUBLISH_ENDPOINT
See Also:
Constant Field Values

DEFAULT_ADMIN_ENDPOINT

public static final java.lang.String DEFAULT_ADMIN_ENDPOINT
See Also:
Constant Field Values

DEFAULT_TRANSPORT_CLASS

public static final java.lang.String DEFAULT_TRANSPORT_CLASS
See Also:
Constant Field Values

DEFAULT_SECURITY_PROVIDER

public static final java.lang.String DEFAULT_SECURITY_PROVIDER
See Also:
Constant Field Values

DEFAULT_PROTOCOL_HANDLER

public static final java.lang.String DEFAULT_PROTOCOL_HANDLER
See Also:
Constant Field Values

DEFAULT_UDDI_VERSION

public static final java.lang.String DEFAULT_UDDI_VERSION
See Also:
Constant Field Values

DEFAULT_UDDI_NAMESPACE

public static final java.lang.String DEFAULT_UDDI_NAMESPACE
See Also:
Constant Field Values
Constructor Detail

RegistryProxy

public RegistryProxy()
Create a new instance of RegistryProxy. This constructor looks in the classpath for a file named 'juddi.properties' and uses property values in this file to initialize the new instance. Default values are used if the file does not exist or if a particular property value is not present.


RegistryProxy

public RegistryProxy(java.util.Properties props)
Creates a new instance of RegistryProxy. This constructor uses the property values passed in the Properties parameter to initialize the new RegistryProxy instance. Default values are used if the file does not exist or if a particular property value is not present.

Method Detail

getAdminURL

public java.net.URL getAdminURL()
Returns:
Returns the adminURL.

setAdminURL

public void setAdminURL(java.net.URL url)
Parameters:
adminURL - The adminURL to set.

getInquiryURL

public java.net.URL getInquiryURL()
Returns:
Returns the inquiryURL.

setInquiryURL

public void setInquiryURL(java.net.URL url)
Parameters:
inquiryURL - The inquiryURL to set.

getPublishURL

public java.net.URL getPublishURL()
Returns:
Returns the publishURL.

setPublishURL

public void setPublishURL(java.net.URL url)
Parameters:
publishURL - The publishURL to set.

getTransport

public Transport getTransport()
Returns:
Returns the transport.

setTransport

public void setTransport(Transport transport)
Parameters:
transport - The transport to set.

getProtocolHandler

public java.lang.String getProtocolHandler()
Returns:
Returns the protocolHandler.

setProtocolHandler

public void setProtocolHandler(java.lang.String protoHandler)
Parameters:
protocolHandler - The protocolHandler to set.

getSecurityProvider

public java.lang.String getSecurityProvider()
Returns:
Returns the securityProvider.

setSecurityProvider

public void setSecurityProvider(java.lang.String secProvider)
Parameters:
securityProvider - The securityProvider to set.

getUddiNamespace

public java.lang.String getUddiNamespace()
Returns:
Returns the uddiNS.

setUddiNamespace

public void setUddiNamespace(java.lang.String uddiNS)
Parameters:
uddiNS - The uddiNS to set.

getUddiVersion

public java.lang.String getUddiVersion()
Returns:
Returns the uddiVersion.

setUddiVersion

public void setUddiVersion(java.lang.String uddiVer)
Parameters:
uddiVersion - The uddiVersion to set.

execute

public RegistryObject execute(RegistryObject uddiRequest)
                       throws RegistryException
Throws:
RegistryException

execute

public java.lang.String execute(java.lang.String uddiRequest,
                                java.lang.String urltype)
                         throws RegistryException
Parameters:
uddiRequest -
Returns:
Throws:
RegistryException

getTransport

public Transport getTransport(java.lang.String className)
Returns an implementation of Transport based on the className passed in. If a null value is passed then the default Transport implementation "org.apache.juddi.proxy.AxisTransport" is created and returned.

Returns:
Transport

main

public static void main(java.lang.String[] args)
                 throws RegistryException
Throws:
RegistryException


Copyright © 2004-2007. All Rights Reserved.