org.apache.servicemix.components.activesoap
Class ASOutBinding
java.lang.Object
org.apache.servicemix.jbi.management.BaseLifeCycle
org.apache.servicemix.components.util.PojoSupport
org.apache.servicemix.components.util.ComponentSupport
org.apache.servicemix.components.util.OutBinding
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 $
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
|
Constructor Summary |
ASOutBinding(org.codehaus.activesoap.RestService service)
|
| 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 |
ASOutBinding
public ASOutBinding(org.codehaus.activesoap.RestService service)
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 processinMessage - the input message of the exchange
- Throws:
Exception - if an error occurs
Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.