org.eclipse.swordfish.internal.resolver.backend.base.wsdl11
Class WSDL11ServiceDescription

java.lang.Object
  extended by org.eclipse.swordfish.internal.resolver.backend.base.wsdl11.WSDL11ServiceDescription
All Implemented Interfaces:
ServiceDescription<javax.wsdl.Definition>

public class WSDL11ServiceDescription
extends java.lang.Object
implements ServiceDescription<javax.wsdl.Definition>

Author:
dwolz

Constructor Summary
WSDL11ServiceDescription(javax.wsdl.Definition wsdl)
          Instantiates a new service description.
 
Method Summary
 SwordfishPort choosePort(java.lang.String operationName, java.lang.String defaultTransport)
          Chooses the WSDL port to use as the endpoint for the operation referred to by the supplied operation name The choice depends on 1.
 java.util.Map<javax.wsdl.extensions.soap.SOAPAddress,javax.wsdl.extensions.soap.SOAPBinding> getAvailableLocations()
          Returns tuples containing containing WS location URI and the SoapBinding object The SoapBindng object exposes the transport URI if available
 java.util.Map<java.lang.String,PolicyDefinitionDescription> getEmbeddedPolicyDefinitions()
          Retrieve embedded policy definitions.
 javax.wsdl.Operation getOperation(java.lang.String operationName)
           
 javax.wsdl.Part getOperationInputMessagePart(java.lang.String operationName)
          returns the (we support only one) "part" of the input message of the indicated operation.
 javax.wsdl.Part getOperationOutputMessagePart(java.lang.String operationName)
          returns the (we support only one) "part" of the out message of the indicated operation.
 java.util.Collection<javax.wsdl.Operation> getOperations()
           
 SwordfishPort getPort(java.lang.String wsdlPortName)
           
 java.lang.String getPortName(java.lang.String address, java.lang.String transportURI)
           
 SwordfishPort[] getPorts()
           
 javax.xml.namespace.QName getPortTypeName()
           
 javax.xml.namespace.QName getServiceName()
          Get the qualified name of the service the service description presents.
 SwordfishPortImpl[] getSupportedPorts(java.lang.String operationName)
           
 java.lang.Class<javax.wsdl.Definition> getType()
          Get an actual type of the description object, used by EndpointExtractor to identify the supported descriptions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDL11ServiceDescription

public WSDL11ServiceDescription(javax.wsdl.Definition wsdl)
Instantiates a new service description.

Parameters:
wsdl - A javax.wsdl.Definition used to initialize service description object.
Throws:
java.lang.IllegalArgumentException - if wsdl is null.
IllegalStateExceptionwsdl - if initialization of service description failed.
Method Detail

getAvailableLocations

public java.util.Map<javax.wsdl.extensions.soap.SOAPAddress,javax.wsdl.extensions.soap.SOAPBinding> getAvailableLocations()
Returns tuples containing containing WS location URI and the SoapBinding object The SoapBindng object exposes the transport URI if available

Returns:

getPortName

public java.lang.String getPortName(java.lang.String address,
                                    java.lang.String transportURI)

getType

public java.lang.Class<javax.wsdl.Definition> getType()
Description copied from interface: ServiceDescription
Get an actual type of the description object, used by EndpointExtractor to identify the supported descriptions.

Specified by:
getType in interface ServiceDescription<javax.wsdl.Definition>
Returns:
A Class object on an entity.

getServiceName

public javax.xml.namespace.QName getServiceName()
Description copied from interface: ServiceDescription
Get the qualified name of the service the service description presents.

Specified by:
getServiceName in interface ServiceDescription<javax.wsdl.Definition>
Returns:
A qualified name of the service, not null.

getPortTypeName

public javax.xml.namespace.QName getPortTypeName()

getOperations

public java.util.Collection<javax.wsdl.Operation> getOperations()

getOperation

public javax.wsdl.Operation getOperation(java.lang.String operationName)

getOperationInputMessagePart

public javax.wsdl.Part getOperationInputMessagePart(java.lang.String operationName)
returns the (we support only one) "part" of the input message of the indicated operation.

Parameters:
operationName - the operation name
Returns:
the operation input message part

getOperationOutputMessagePart

public javax.wsdl.Part getOperationOutputMessagePart(java.lang.String operationName)
returns the (we support only one) "part" of the out message of the indicated operation.

Parameters:
operationName - the operation name
Returns:
the operation output message part

getEmbeddedPolicyDefinitions

public java.util.Map<java.lang.String,PolicyDefinitionDescription> getEmbeddedPolicyDefinitions()
Description copied from interface: ServiceDescription
Retrieve embedded policy definitions.

Specified by:
getEmbeddedPolicyDefinitions in interface ServiceDescription<javax.wsdl.Definition>
Returns:
the embedded policy definitions mapped to corresponding endpoint names or null if there are none.

getPort

public SwordfishPort getPort(java.lang.String wsdlPortName)

getSupportedPorts

public SwordfishPortImpl[] getSupportedPorts(java.lang.String operationName)

getPorts

public SwordfishPort[] getPorts()

choosePort

public SwordfishPort choosePort(java.lang.String operationName,
                                java.lang.String defaultTransport)
Chooses the WSDL port to use as the endpoint for the operation referred to by the supplied operation name The choice depends on 1. which ports are available in the service description 2. what types of transport they are bound to 3. what types of transport are defined by the agreed policy for the operation

Parameters:
operationName - the operation name (local part of WSDL operation name)
defaultTransport - the default transport
Returns:
the selected SwordfishPort