|
||||||||||
| 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 java.lang.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,
java.util.logging.Logger logger)
Creates a new instance of RESTCaller |
|
| Method Summary | |
|---|---|
protected java.net.URI |
buildEPR(java.lang.String address,
org.apache.axiom.om.OMElement element)
Build the EPR for the REST service |
protected org.apache.axiom.om.OMElement |
buildMessageBody(javax.xml.namespace.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,
java.lang.String httpMethod,
java.net.URI epr)
Create the Options object |
java.lang.String |
getCallerType()
Returns the type of dispatcher. |
protected java.lang.String |
getHTTPMethod(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
|
protected org.apache.axiom.om.OMElement |
sourceAsOMElement(javax.xml.transform.Source source)
|
| 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 |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_HTTP_METHOD
| Constructor Detail |
|---|
public RESTCaller(SoapComponentContext soapContext,
java.util.logging.Logger logger)
RESTCaller
soapContext - logger - | Method Detail |
|---|
public java.lang.String getCallerType()
ExternalServiceCaller
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)
ExternalServiceCaller
protected org.apache.axis2.client.Options createOptions(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions,
java.lang.String httpMethod,
java.net.URI epr)
Options object
extensions - httpMethod - epr -
protected java.net.URI buildEPR(java.lang.String address,
org.apache.axiom.om.OMElement element)
throws java.net.URISyntaxException
address -
java.net.URISyntaxException
java.lang.Exception
protected org.apache.axiom.om.OMElement buildMessageBody(javax.xml.namespace.QName operation,
org.apache.axiom.om.OMElement source)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException,
javax.xml.stream.XMLStreamException,
javax.jbi.messaging.MessagingException
exchange -
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
javax.xml.stream.XMLStreamException
javax.jbi.messaging.MessagingException
protected org.apache.axiom.om.OMElement sourceAsOMElement(javax.xml.transform.Source source)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException,
javax.xml.stream.XMLStreamException,
javax.jbi.messaging.MessagingException
source -
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
javax.xml.stream.XMLStreamException
javax.jbi.messaging.MessagingExceptionprotected java.lang.String getHTTPMethod(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
jbiOperation - extensions -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||