|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.binding.soap.listener.outgoing.AbstractExternalServiceCaller
org.ow2.petals.binding.soap.listener.outgoing.SOAPCaller
public class SOAPCaller
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.
| 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,
org.apache.axiom.om.OMFactory factory)
Build the OMElement from the Source. |
protected org.apache.axiom.om.OMElement |
buildResponseElement(org.apache.axiom.soap.SOAPBody body)
|
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,
ServiceClient 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(ServiceClient 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, retrieveAddressing, retrieveAddRoot, retrieveBasicAuthentication, retrieveChunkedMode, retrieveCleanupTransport, retrieveDefaultSOAPAction, retrieveProxySettings, retrieveServiceAddress, retrieveSOAPEnvelopeNamespaceURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SOAPCaller(SoapComponentContext soapContext,
java.util.logging.Logger logger)
SOAPCaller
soapContext - logger - | Method Detail |
|---|
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)
ExternalServiceCaller
protected void updateClient(ServiceClient client,
Addressing addressing,
org.ow2.petals.component.framework.api.message.Exchange exchange)
client - addressing -
protected boolean isFilteredValue(java.lang.String propertyName,
java.util.List<java.lang.String> filters)
propertyName - filters -
protected org.apache.axiom.om.OMElement buildResponseElement(org.apache.axiom.soap.SOAPBody body)
body -
protected static org.apache.axiom.om.OMElement createSOAPBodyContent(javax.jbi.messaging.NormalizedMessage nm,
javax.xml.namespace.QName operation,
ServiceClient client,
org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
throws javax.xml.stream.XMLStreamException
body -
NormalizedMessage is
empty.
javax.xml.stream.XMLStreamException
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,
org.apache.axiom.om.OMFactory factory)
throws javax.xml.stream.XMLStreamException
OMElement from the Source. The SOAP operation
is added as root element if it is configured in the petals extensions.
body - operation - extensions -
javax.xml.stream.XMLStreamExceptionpublic java.lang.String getCallerType()
ExternalServiceCaller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||