org.talend.esb.sam.agent.flowidprocessor
Class FlowIdProducerOut<T extends org.apache.cxf.message.Message>

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<T>
      extended by org.talend.esb.sam.agent.flowidprocessor.FlowIdProducerOut<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
org.apache.cxf.interceptor.Interceptor<T>, org.apache.cxf.phase.PhaseInterceptor<T>

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

The Class FlowIdProducerOut used for writing FlowId in outcoming messages.


Constructor Summary
FlowIdProducerOut()
          Instantiates a new flow id producer out.
 
Method Summary
protected  void handleINEvent(org.apache.cxf.message.Exchange exchange, String reqFid)
          Calling EventProducerInterceptor in case of logging faults.
 void handleMessage(T message)
           
protected  void handleRequestOut(T message)
          Handling out request.
protected  void handleResponseOut(T message)
          Handling out responce.
 
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

FlowIdProducerOut

public FlowIdProducerOut()
Instantiates a new flow id producer out.

Method Detail

handleMessage

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

handleResponseOut

protected void handleResponseOut(T message)
                          throws org.apache.cxf.interceptor.Fault
Handling out responce.

Parameters:
message - the message
Throws:
org.apache.cxf.interceptor.Fault - the fault

handleRequestOut

protected void handleRequestOut(T message)
                         throws org.apache.cxf.interceptor.Fault
Handling out request.

Parameters:
message - the message
Throws:
org.apache.cxf.interceptor.Fault - the fault

handleINEvent

protected void handleINEvent(org.apache.cxf.message.Exchange exchange,
                             String reqFid)
                      throws org.apache.cxf.interceptor.Fault
Calling EventProducerInterceptor in case of logging faults.

Parameters:
exchange - the message exchange
reqFid - the FlowId
Throws:
org.apache.cxf.interceptor.Fault - the fault


Copyright © 2011-2012 Talend Inc.. All Rights Reserved.