org.ow2.petals.binding.soap.listener.outgoing
Class SOAPCaller

java.lang.Object
  extended by org.ow2.petals.binding.soap.listener.outgoing.AbstractExternalServiceCaller
      extended by org.ow2.petals.binding.soap.listener.outgoing.SOAPCaller

public class SOAPCaller
extends AbstractExternalServiceCaller

An external web service dispatcher. This dispatcher send the JBI message to an external web service. The service URL is specified in the PEtALS extensions.

Author:
chamerling - eBM WebSourcing

Field Summary
 
Fields inherited from class org.ow2.petals.binding.soap.listener.outgoing.AbstractExternalServiceCaller
logger, SOAP_VERSION_11, SOAP_VERSION_12, soapContext
 
Constructor Summary
SOAPCaller(SoapComponentContext soapContext, java.util.logging.Logger logger)
          Creates a new instance of SOAPCaller
 
Method Summary
protected static org.apache.axiom.om.OMElement buildOMElementFromSource(javax.xml.transform.Source body, javax.xml.namespace.QName operation, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Build the OMElement from the Source.
 void call(org.ow2.petals.component.framework.api.message.Exchange exchange, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions cdkExtensions, org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides)
          Process the message exchange (call an external WS).
protected static org.apache.axiom.om.OMElement createSOAPBodyContent(javax.jbi.messaging.NormalizedMessage nm, javax.xml.namespace.QName operation, PetalsServiceClient client, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Create the SOAPBody content.
 java.lang.String getCallerType()
          Returns the type of dispatcher.
protected  boolean isFilteredValue(java.lang.String propertyName, java.util.List<java.lang.String> filters)
           
protected  void updateClient(PetalsServiceClient client, Addressing addressing, org.ow2.petals.component.framework.api.message.Exchange exchange)
          Update the client properties
 
Methods inherited from class org.ow2.petals.binding.soap.listener.outgoing.AbstractExternalServiceCaller
handleException, handleException, handleException, retrieveChunkedMode, retrieveCleanupTransport, retrieveDefaultSOAPAction, retrieveProxySettings, retrieveSOAPEnvelopeNamespaceURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPCaller

public SOAPCaller(SoapComponentContext soapContext,
                  java.util.logging.Logger logger)
Creates a new instance of SOAPCaller

Parameters:
soapContext -
logger -
Method Detail

buildOMElementFromSource

protected static org.apache.axiom.om.OMElement buildOMElementFromSource(javax.xml.transform.Source body,
                                                                        javax.xml.namespace.QName operation,
                                                                        org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
                                                                 throws javax.xml.stream.XMLStreamException
Build the OMElement from the Source. The SOAP operation is added as root element if it is configured in the petals extensions.

Parameters:
body -
operation -
extensions -
Returns:
Throws:
javax.xml.stream.XMLStreamException

createSOAPBodyContent

protected static org.apache.axiom.om.OMElement createSOAPBodyContent(javax.jbi.messaging.NormalizedMessage nm,
                                                                     javax.xml.namespace.QName operation,
                                                                     PetalsServiceClient client,
                                                                     org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
                                                              throws javax.xml.stream.XMLStreamException,
                                                                     java.io.UnsupportedEncodingException
Create the SOAPBody content. The JBI content is used as root element. All the JBI attachments are added as root element children.

Parameters:
body -
Returns:
the soap body content or null if NormalizedMessage is empty.
Throws:
javax.xml.stream.XMLStreamException
java.io.UnsupportedEncodingException

call

public void call(org.ow2.petals.component.framework.api.message.Exchange exchange,
                 org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions cdkExtensions,
                 org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides)
Description copied from class: AbstractExternalServiceCaller
Process the message exchange (call an external WS).

Specified by:
call in class AbstractExternalServiceCaller

getCallerType

public java.lang.String getCallerType()
Description copied from class: AbstractExternalServiceCaller
Returns the type of dispatcher.

Specified by:
getCallerType in class AbstractExternalServiceCaller
Returns:

isFilteredValue

protected boolean isFilteredValue(java.lang.String propertyName,
                                  java.util.List<java.lang.String> filters)
Parameters:
propertyName -
filters -
Returns:

updateClient

protected void updateClient(PetalsServiceClient client,
                            Addressing addressing,
                            org.ow2.petals.component.framework.api.message.Exchange exchange)
Update the client properties

Parameters:
client -
addressing -


Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.