org.apache.servicemix.components.activesoap
Class ASOutBinding

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.components.util.PojoSupport
          extended by org.apache.servicemix.components.util.ComponentSupport
              extended by org.apache.servicemix.components.util.OutBinding
                  extended by org.apache.servicemix.components.activesoap.ASOutBinding
All Implemented Interfaces:
Runnable, javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, javax.jbi.management.LifeCycleMBean, org.apache.servicemix.jbi.listener.MessageExchangeListener, MBeanInfoProvider

public class ASOutBinding
extends OutBinding

Converts an inbound JBI message into an ActiveSOAP one way invocation.

Version:
$Revision: 2153 $

Field Summary
 
Fields inherited from class org.apache.servicemix.components.util.PojoSupport
logger
 
Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
currentState, INITIALIZED, listener
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Constructor Summary
ASOutBinding(org.codehaus.activesoap.RestService service)
           
 
Method Summary
 ASMarshaler getMarshaler()
           
 ASMarshaler getMarshaller()
          Deprecated. use getMarshaler instead
protected  void process(javax.jbi.messaging.MessageExchange messageExchange, javax.jbi.messaging.NormalizedMessage inMessage)
          Process incoming exchange.
 void setMarshaler(ASMarshaler marshaler)
           
 void setMarshaller(ASMarshaler marshaler)
          Deprecated. use setMarshaler instead
 
Methods inherited from class org.apache.servicemix.components.util.OutBinding
onMessageExchange, run, shutDown, start, stop
 
Methods inherited from class org.apache.servicemix.components.util.ComponentSupport
createComponentLifeCycle, createInOnlyExchange, createInOnlyExchange, createInOnlyExchange, createInOptionalOutExchange, createInOutExchange, createInOutExchange, createRobustInOnlyExchange, createServiceUnitManager, creatInOutExchange, forwardToExchange, forwardToExchange, getInMessage, getLifeCycle, getMessageTransformer, getServiceDescription, getServiceUnitManager, initializeServiceUnitManager, invoke, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, propagateCorrelationId, resolveEndpointReference, setMessageTransformer
 
Methods inherited from class org.apache.servicemix.components.util.PojoSupport
answer, done, fail, fail, getBody, getContext, getDeliveryChannel, getDescription, getEndpoint, getExchangeFactory, getExtensionMBeanName, getService, init, init, isInAndOut, send, sendSync, sendSync, setBody, setEndpoint, setExtensionMBeanName, setService
 
Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
firePropertyChanged, getAttributeInfos, getCurrentState, getName, getObjectToManage, getOperationInfos, getSubType, getType, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASOutBinding

public ASOutBinding(org.codehaus.activesoap.RestService service)
Method Detail

getMarshaller

public ASMarshaler getMarshaller()
Deprecated. use getMarshaler instead


setMarshaller

public void setMarshaller(ASMarshaler marshaler)
Deprecated. use setMarshaler instead


getMarshaler

public ASMarshaler getMarshaler()
Returns:
the marshaler

setMarshaler

public void setMarshaler(ASMarshaler marshaler)
Parameters:
marshaler - the marshaler to set

process

protected void process(javax.jbi.messaging.MessageExchange messageExchange,
                       javax.jbi.messaging.NormalizedMessage inMessage)
                throws Exception
Description copied from class: OutBinding
Process incoming exchange. The exchange is in the ACTIVE state. The method should end by a call to done() or answer(). When an exception is thrown, the fail() method will be called.

Specified by:
process in class OutBinding
Parameters:
messageExchange - the exchange to process
inMessage - the input message of the exchange
Throws:
Exception - if an error occurs


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.