org.apache.servicemix.components.wsif
Class WSIFBinding

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.TransformComponentSupport
                  extended by org.apache.servicemix.components.wsif.WSIFBinding
All Implemented Interfaces:
javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, javax.jbi.management.LifeCycleMBean, org.apache.servicemix.jbi.listener.MessageExchangeListener, MBeanInfoProvider

public class WSIFBinding
extends TransformComponentSupport

Consumers JBI messages and sends them as a synchronous request/response into WSIF then forwards the response

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
WSIFBinding()
           
 
Method Summary
 javax.wsdl.Definition getDefinition()
           
 org.springframework.core.io.Resource getDefinitionResource()
           
 org.apache.wsif.WSIFServiceFactory getFactory()
           
 WSIFMarshaler getMarshaler()
           
 WSIFMarshaler getMarshaller()
          Deprecated. use getMarshaler instead
 org.apache.wsif.WSIFService getServiceHelper()
           
protected  void init()
          A helper method to allow a component to initialise prior to the endpoint being activated but after the component context has been configured.
 void setDefinition(javax.wsdl.Definition definition)
           
 void setDefinitionResource(org.springframework.core.io.Resource definitionResource)
           
 void setFactory(org.apache.wsif.WSIFServiceFactory factory)
           
 void setMarshaler(WSIFMarshaler marshaler)
           
 void setMarshaller(WSIFMarshaler marshaler)
          Deprecated. use setMarshaler instead
 void setServiceHelper(org.apache.wsif.WSIFService serviceHelper)
           
protected  boolean transform(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage in, javax.jbi.messaging.NormalizedMessage out)
          Transforms the given out message
 
Methods inherited from class org.apache.servicemix.components.util.TransformComponentSupport
copyPropertiesAndAttachments, getStore, getStoreFactory, isCopyAttachments, isCopyProperties, onMessageExchange, processFirstExchange, processOngoingExchange, setCopyAttachments, setCopyProperties, setStore, setStoreFactory
 
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, isInAndOut, send, sendSync, sendSync, setBody, setEndpoint, setExtensionMBeanName, setService, shutDown
 
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, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jbi.component.ComponentLifeCycle
start, stop
 

Constructor Detail

WSIFBinding

public WSIFBinding()
Method Detail

init

protected void init()
             throws javax.jbi.JBIException
Description copied from class: PojoSupport
A helper method to allow a component to initialise prior to the endpoint being activated but after the component context has been configured.

Overrides:
init in class TransformComponentSupport
Throws:
javax.jbi.JBIException

getMarshaller

public WSIFMarshaler getMarshaller()
Deprecated. use getMarshaler instead


setMarshaller

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


getMarshaler

public WSIFMarshaler getMarshaler()

setMarshaler

public void setMarshaler(WSIFMarshaler marshaler)

getDefinition

public javax.wsdl.Definition getDefinition()

setDefinition

public void setDefinition(javax.wsdl.Definition definition)

getDefinitionResource

public org.springframework.core.io.Resource getDefinitionResource()

setDefinitionResource

public void setDefinitionResource(org.springframework.core.io.Resource definitionResource)

getFactory

public org.apache.wsif.WSIFServiceFactory getFactory()

setFactory

public void setFactory(org.apache.wsif.WSIFServiceFactory factory)

getServiceHelper

public org.apache.wsif.WSIFService getServiceHelper()

setServiceHelper

public void setServiceHelper(org.apache.wsif.WSIFService serviceHelper)

transform

protected boolean transform(javax.jbi.messaging.MessageExchange exchange,
                            javax.jbi.messaging.NormalizedMessage in,
                            javax.jbi.messaging.NormalizedMessage out)
                     throws javax.jbi.messaging.MessagingException
Description copied from class: TransformComponentSupport
Transforms the given out message

Specified by:
transform in class TransformComponentSupport
Throws:
javax.jbi.messaging.MessagingException


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