Search in sources :

Example 1 with WireTapIn

use of org.talend.esb.sam.agent.wiretap.WireTapIn in project tesb-rt-se by Talend.

the class EventFeatureImpl method initializeProvider.

/* (non-Javadoc)
     * @see org.apache.cxf.feature.AbstractFeature#initializeProvider(org.apache.cxf.interceptor.InterceptorProvider, org.apache.cxf.Bus)
     */
@Override
protected void initializeProvider(InterceptorProvider provider, Bus bus) {
    super.initializeProvider(provider, bus);
    FlowIdProducerIn<Message> flowIdProducerIn = new FlowIdProducerIn<Message>();
    provider.getInInterceptors().add(flowIdProducerIn);
    provider.getInFaultInterceptors().add(flowIdProducerIn);
    FlowIdProducerOut<Message> flowIdProducerOut = new FlowIdProducerOut<Message>();
    provider.getOutInterceptors().add(flowIdProducerOut);
    provider.getOutFaultInterceptors().add(flowIdProducerOut);
    WireTapIn wireTapIn = new WireTapIn(logMessageContent);
    provider.getInInterceptors().add(wireTapIn);
    provider.getInInterceptors().add(epi);
    provider.getInFaultInterceptors().add(epi);
    WireTapOut wireTapOut = new WireTapOut(epi, logMessageContent);
    provider.getOutInterceptors().add(wireTapOut);
    provider.getOutFaultInterceptors().add(wireTapOut);
}
Also used : Message(org.apache.cxf.message.Message) WireTapOut(org.talend.esb.sam.agent.wiretap.WireTapOut) FlowIdProducerOut(org.talend.esb.sam.agent.flowidprocessor.FlowIdProducerOut) WireTapIn(org.talend.esb.sam.agent.wiretap.WireTapIn) FlowIdProducerIn(org.talend.esb.sam.agent.flowidprocessor.FlowIdProducerIn)

Aggregations

Message (org.apache.cxf.message.Message)1 FlowIdProducerIn (org.talend.esb.sam.agent.flowidprocessor.FlowIdProducerIn)1 FlowIdProducerOut (org.talend.esb.sam.agent.flowidprocessor.FlowIdProducerOut)1 WireTapIn (org.talend.esb.sam.agent.wiretap.WireTapIn)1 WireTapOut (org.talend.esb.sam.agent.wiretap.WireTapOut)1