com.acsinet_solutions.cetia4.service.mix
Class HTTPRequestComponent

java.lang.Object
  extended by org.servicemix.jbi.management.BaseLifeCycle
      extended by org.servicemix.components.util.PojoSupport
          extended by org.servicemix.components.util.ComponentSupport
              extended by com.acsinet_solutions.cetia4.service.mix.HTTPRequestComponent
All Implemented Interfaces:
javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, javax.jbi.management.LifeCycleMBean, org.servicemix.jbi.management.MBeanInfoProvider, org.servicemix.MessageExchangeListener

public class HTTPRequestComponent
extends org.servicemix.components.util.ComponentSupport
implements org.servicemix.MessageExchangeListener

A simple component for servicemix that performs HTTP requests based on a simple input entry

Author:
Santiago Arriaga

Field Summary
 
Fields inherited from class org.servicemix.jbi.management.BaseLifeCycle
currentState, listener
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
RUNNING, SHUTDOWN, STOPPED, UNKNOWN
 
Constructor Summary
HTTPRequestComponent()
           
 
Method Summary
 void onMessageExchange(javax.jbi.messaging.MessageExchange exchange)
           
 void setHttpCommandProcessor(HttpCommandProcessor processor)
          Sets the HTTP command processor that will be used to send remote HTTP requests to the target service.
 
Methods inherited from class org.servicemix.components.util.ComponentSupport
createComponentLifeCycle, createInOnlyExchange, createInOutExchange, createServiceUnitManager, forwardToExchange, forwardToExchange, getInMessage, getLifeCycle, getMessageTransformer, getServiceDescription, getServiceUnitManager, initializeServiceUnitManager, invoke, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, resolveEndpointReference, setMessageTransformer
 
Methods inherited from class org.servicemix.components.util.PojoSupport
answer, done, fail, fail, getBody, getContext, getDeliveryChannel, getDescription, getEndpoint, getExchangeFactory, getExtensionMBeanName, getService, init, init, isInAndOut, send, setBody, setEndpoint, setExtensionMBeanName, setService
 
Methods inherited from class org.servicemix.jbi.management.BaseLifeCycle
firePropertyChanged, getAttributeInfos, getCurrentState, getName, getObjectToManage, getOperationInfos, setCurrentState, setPropertyChangeListener, shutDown, 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
shutDown, start, stop
 

Constructor Detail

HTTPRequestComponent

public HTTPRequestComponent()
Method Detail

setHttpCommandProcessor

public final void setHttpCommandProcessor(HttpCommandProcessor processor)
Sets the HTTP command processor that will be used to send remote HTTP requests to the target service.


onMessageExchange

public void onMessageExchange(javax.jbi.messaging.MessageExchange exchange)
                       throws javax.jbi.messaging.MessagingException
Specified by:
onMessageExchange in interface org.servicemix.MessageExchangeListener
Throws:
javax.jbi.messaging.MessagingException