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

java.lang.Object
  extended by org.ow2.petals.binding.soap.listener.outgoing.AbstractExternalServiceCaller
      extended by org.ow2.petals.binding.soap.listener.outgoing.RESTCaller
          extended by org.ow2.petals.binding.soap.listener.outgoing.JSONCaller
All Implemented Interfaces:
ExternalServiceCaller

public class JSONCaller
extends RESTCaller

A caller for JSON services

Author:
Christophe HAMERLING - eBM WebSourcing

Field Summary
 
Fields inherited from class org.ow2.petals.binding.soap.listener.outgoing.RESTCaller
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
JSONCaller(SoapComponentContext soapContext, java.util.logging.Logger logger)
          Creates a new instance of JSONCaller
 
Method Summary
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
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.
 
Methods inherited from class org.ow2.petals.binding.soap.listener.outgoing.RESTCaller
buildEPR, call, getHTTPMethod, sourceAsOMElement
 
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

JSONCaller

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

Parameters:
soapContext -
logger -
Method Detail

getCallerType

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

Specified by:
getCallerType in interface ExternalServiceCaller
Overrides:
getCallerType in class RESTCaller
Returns:

createOptions

protected org.apache.axis2.client.Options createOptions(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions,
                                                        java.lang.String httpMethod,
                                                        java.net.URI epr)
Description copied from class: RESTCaller
Create the Options object

Overrides:
createOptions in class RESTCaller
Returns:

buildMessageBody

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
Description copied from class: RESTCaller
Build the REST message from the JBI one

Overrides:
buildMessageBody in class RESTCaller
Returns:
Throws:
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
javax.xml.stream.XMLStreamException
javax.jbi.messaging.MessagingException


Copyright © 2005-2010 OW2 Consortium. All Rights Reserved.