com.ibm.websphere.srm
Class EndpointReferenceFactory

java.lang.Object
  extended bycom.ibm.websphere.srm.EndpointReferenceFactory

public abstract class EndpointReferenceFactory
extends java.lang.Object

The EndpointReferenceFactory is used to create instances of an EndpointReferenceType.


Method Summary
static AttributedQName createAttributedQName(javax.xml.namespace.QName name)
          Create a qName to be used when creating an endpoint reference.
static AttributedURI createAttributedURI(com.ibm.ws.webservices.engine.types.URI address)
          Create a URI to be used when creating an endpoint reference.
static EndpointReferenceType createEndpointReferenceType(AttributedURI address)
          Create an new EndpointReferenceType that only has an address.
static EndpointReferenceType createEndpointReferenceType(javax.wsdl.Definition wsdlDefinition)
          Instantiate an EndpointReferenceType based on a WSDL Definition object.
static EndpointReferenceType createEndpointReferenceType(java.lang.String address)
          Creates an instance of an EndpointReferenceType.
static ReferencePropertiesType createReferencePropertiesType(javax.xml.soap.SOAPElement[] elements)
          Create a reference property element to be added to an endpoint reference.
static ServiceNameType createServiceNameType(javax.xml.namespace.QName name)
          Create a ServiceNameType that can be used to create an endpoint reference.
 java.lang.String toString()
          The String representation of this class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createAttributedQName

public static AttributedQName createAttributedQName(javax.xml.namespace.QName name)
Create a qName to be used when creating an endpoint reference.


createAttributedURI

public static AttributedURI createAttributedURI(com.ibm.ws.webservices.engine.types.URI address)
Create a URI to be used when creating an endpoint reference.


createEndpointReferenceType

public static EndpointReferenceType createEndpointReferenceType(AttributedURI address)
Create an new EndpointReferenceType that only has an address.

Parameters:
address -
Returns:
A new object.

createEndpointReferenceType

public static EndpointReferenceType createEndpointReferenceType(javax.wsdl.Definition wsdlDefinition)
                                                         throws InvalidWSDLDefinitionException,
                                                                com.ibm.ws.webservices.engine.types.URI.MalformedURIException
Instantiate an EndpointReferenceType based on a WSDL Definition object.

If any of the above conditions are not met then a InvalidWSDLDefinitionException will be thrown.

Parameters:
wsdlDefinition - The WSDL Definition that is used to create a new EndpointReferenceType
Returns:
an instance of an EndpointReferenceType
Throws:
InvalidWSDLDefinitionException - Thrown if the WSDL Definition passed in does not contain the elements expected.
com.ibm.ws.webservices.engine.types.URI.MalformedURIException

createEndpointReferenceType

public static EndpointReferenceType createEndpointReferenceType(java.lang.String address)
                                                         throws com.ibm.ws.webservices.engine.types.URI.MalformedURIException
Creates an instance of an EndpointReferenceType.

Parameters:
address - The address of the EndpointReferenceType
Returns:
An instance of an EndpointReferenceType.
Throws:
com.ibm.ws.webservices.engine.types.URI.MalformedURIException

createReferencePropertiesType

public static ReferencePropertiesType createReferencePropertiesType(javax.xml.soap.SOAPElement[] elements)
Create a reference property element to be added to an endpoint reference. Reference properties are represented as SOAPElements.

Parameters:
elements - The reference properties.
Returns:
An object that can be added to an endpoint reference.

createServiceNameType

public static ServiceNameType createServiceNameType(javax.xml.namespace.QName name)
Create a ServiceNameType that can be used to create an endpoint reference.

Parameters:
name - The qualified name of the service.
Returns:
A new service name object.

toString

public java.lang.String toString()
The String representation of this class.

Returns:
See above.