org.talend.esb.sam.agent.eventproducer
Class EventProducerInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
      extended by org.talend.esb.sam.agent.eventproducer.EventProducerInterceptor
All Implemented Interfaces:
org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

public class EventProducerInterceptor
extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>

Maps the CXF Message to an Event and sends this to a given EvventManipulator Acts as a callback for the out case and as an PhaseInterceptor in the in case.


Constructor Summary
EventProducerInterceptor(MessageToEventMapper mapper, org.talend.esb.sam.common.spi.EventHandler eventSender)
           
 
Method Summary
 void handleMessage(org.apache.cxf.message.Message message)
           
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventProducerInterceptor

public EventProducerInterceptor(MessageToEventMapper mapper,
                                org.talend.esb.sam.common.spi.EventHandler eventSender)
Method Detail

handleMessage

public void handleMessage(org.apache.cxf.message.Message message)
                   throws org.apache.cxf.interceptor.Fault
Throws:
org.apache.cxf.interceptor.Fault


Copyright © 2011 Talend Inc.. All Rights Reserved.