cgl.narada.wsinfra.wsa.impl
Class WsaEprCreatorImpl

java.lang.Object
  extended by cgl.narada.wsinfra.wsa.impl.WsaEprCreatorImpl
All Implemented Interfaces:
WsaEprCreator

public class WsaEprCreatorImpl
extends Object
implements WsaEprCreator

This is a utility class which facilitates the creation of Endpoint References.


Method Summary
 void addElementToReferenceParameters(EndpointReferenceType eprType, QName qname, String value)
          Adds an element to the ReferenceParameters type within the specified Endpoint reference.
 void addElementToReferenceProperties(EndpointReferenceType eprType, QName qname, String value)
          Adds an element to the ReferenceProperties type within the specified Endpoint reference.
 void addReferenceParametersAttribute(EndpointReferenceType eprType, QName qname, String value)
          Adds an attribute to the ReferenceParameters type within the specified Endpoint reference.
 void addReferencePropertiesAttribute(EndpointReferenceType eprType, QName qname, String value)
          Adds an attribute to the ReferenceProperties type within the specified Endpoint reference.
 void addToReferenceParameters(EndpointReferenceType eprType, XmlObject object)
          Copies the contents of the specified XmlObject into the reference parameters element
 void addToReferenceProperties(EndpointReferenceType eprType, XmlObject object)
          Copies the contents of the specified XmlObject into the reference properties element
 EndpointReferenceType createEpr(String address)
          Creats an Endpoint reference type based on the specified address
 EndpointReferenceType createEpr(String address, String portType, String serviceName)
          Creats an Endpoint reference type based on the specified address, portType and ServiceName
static WsaEprCreator getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WsaEprCreator getInstance()

createEpr

public EndpointReferenceType createEpr(String address)
Creats an Endpoint reference type based on the specified address

Specified by:
createEpr in interface WsaEprCreator

createEpr

public EndpointReferenceType createEpr(String address,
                                       String portType,
                                       String serviceName)
Creats an Endpoint reference type based on the specified address, portType and ServiceName

Specified by:
createEpr in interface WsaEprCreator

addReferencePropertiesAttribute

public void addReferencePropertiesAttribute(EndpointReferenceType eprType,
                                            QName qname,
                                            String value)
Adds an attribute to the ReferenceProperties type within the specified Endpoint reference. If type does not contain the ReferenceProperties element, a new one is created. Then the specified attribute is added to the ReferenceProperties

Specified by:
addReferencePropertiesAttribute in interface WsaEprCreator

addElementToReferenceProperties

public void addElementToReferenceProperties(EndpointReferenceType eprType,
                                            QName qname,
                                            String value)
Adds an element to the ReferenceProperties type within the specified Endpoint reference. If type does not contain the ReferenceProperties element, a new one is created. Then the specified element is added to the ReferenceProperties

Specified by:
addElementToReferenceProperties in interface WsaEprCreator

addToReferenceProperties

public void addToReferenceProperties(EndpointReferenceType eprType,
                                     XmlObject object)
Copies the contents of the specified XmlObject into the reference properties element

Specified by:
addToReferenceProperties in interface WsaEprCreator

addReferenceParametersAttribute

public void addReferenceParametersAttribute(EndpointReferenceType eprType,
                                            QName qname,
                                            String value)
Adds an attribute to the ReferenceParameters type within the specified Endpoint reference. If type does not contain the ReferenceParameters element, a new one is created. Then the specified attribute is added to the ReferenceParameters

Specified by:
addReferenceParametersAttribute in interface WsaEprCreator

addElementToReferenceParameters

public void addElementToReferenceParameters(EndpointReferenceType eprType,
                                            QName qname,
                                            String value)
Adds an element to the ReferenceParameters type within the specified Endpoint reference. If type does not contain the ReferenceParameters element, a new one is created. Then the specified element is added to the ReferenceParameters

Specified by:
addElementToReferenceParameters in interface WsaEprCreator

addToReferenceParameters

public void addToReferenceParameters(EndpointReferenceType eprType,
                                     XmlObject object)
Copies the contents of the specified XmlObject into the reference parameters element

Specified by:
addToReferenceParameters in interface WsaEprCreator


For comments and suggestions please send e-mail to The NaradaBrokering Project