|
||||||||||
| 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.RESTCaller
public class RESTCaller
A REST service caller.
| Field Summary | |
|---|---|
static String |
DEFAULT_HTTP_METHOD
|
| Fields inherited from class org.ow2.petals.binding.soap.listener.outgoing.AbstractExternalServiceCaller |
|---|
logger, SOAP_VERSION_11, SOAP_VERSION_12, soapContext |
| Constructor Summary | |
|---|---|
RESTCaller(SoapComponentContext soapContext,
Logger logger)
Creates a new instance of RESTCaller |
|
| Method Summary | |
|---|---|
protected URI |
buildEPR(String address,
org.apache.axiom.om.OMElement element)
Build the EPR for the REST service |
protected org.apache.axiom.om.OMElement |
buildMessageBody(QName operation,
org.apache.axiom.om.OMElement source)
Build the REST message from the JBI one |
void |
call(org.ow2.petals.component.framework.api.message.Exchange exchange,
org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions,
org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides)
Process the message exchange (call an external WS). |
protected org.apache.axis2.client.Options |
createOptions(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions,
String httpMethod,
URI epr)
Create the Options object |
String |
getCallerType()
Returns the type of dispatcher. |
protected String |
getHTTPMethod(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
|
protected static String |
retrieveServiceAddress(org.ow2.petals.component.framework.api.message.Exchange exchange,
org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Get the final service address for this endpoint and message exchange. |
protected org.apache.axiom.om.OMElement |
sourceAsOMElement(Source source)
|
| 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 |
| Field Detail |
|---|
public static final String DEFAULT_HTTP_METHOD
| Constructor Detail |
|---|
public RESTCaller(SoapComponentContext soapContext,
Logger logger)
RESTCaller
soapContext - logger - | Method Detail |
|---|
protected static final String retrieveServiceAddress(org.ow2.petals.component.framework.api.message.Exchange exchange,
org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
org.ow2.petals.component.framework.api.Constants.WSStar.ADDRESSING_KEY
property (OASIS/W3C standard)
exchange - The exchangeextensions - The extensions
protected URI buildEPR(String address,
org.apache.axiom.om.OMElement element)
throws URISyntaxException
address -
URISyntaxException
Exception
protected org.apache.axiom.om.OMElement buildMessageBody(QName operation,
org.apache.axiom.om.OMElement source)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException,
XMLStreamException,
javax.jbi.messaging.MessagingException
exchange -
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
XMLStreamException
javax.jbi.messaging.MessagingException
public void call(org.ow2.petals.component.framework.api.message.Exchange exchange,
org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions,
org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides)
AbstractExternalServiceCaller
call in class AbstractExternalServiceCaller
protected org.apache.axis2.client.Options createOptions(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions,
String httpMethod,
URI epr)
Options object
extensions - httpMethod - epr -
public String getCallerType()
AbstractExternalServiceCaller
getCallerType in class AbstractExternalServiceCallerprotected String getHTTPMethod(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
jbiOperation - extensions -
protected org.apache.axiom.om.OMElement sourceAsOMElement(Source source)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException,
XMLStreamException,
javax.jbi.messaging.MessagingException
source -
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
XMLStreamException
javax.jbi.messaging.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||