use of org.talend.esb.sam.agent.wiretap.WireTapOut 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);
}
Aggregations