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 Event to Queue


Constructor Summary
EventProducerInterceptor(MessageToEventMapper mapper, Queue<org.talend.esb.sam.common.event.Event> queue)
           
 
Method Summary
 void handleMessage(org.apache.cxf.message.Message message)
           
 void setHandler(org.talend.esb.sam.common.spi.EventHandler handler)
           
 
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,
                                Queue<org.talend.esb.sam.common.event.Event> queue)
Method Detail

setHandler

public void setHandler(org.talend.esb.sam.common.spi.EventHandler handler)

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.