Apache CXF API

org.apache.cxf.ws.addressing.soap
Class OneWayDecoupledFaultHandler

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<SoapMessage>
      extended by org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
          extended by org.apache.cxf.ws.addressing.soap.OneWayDecoupledFaultHandler
All Implemented Interfaces:
SoapInterceptor, Interceptor<SoapMessage>, PhaseInterceptor<SoapMessage>

public class OneWayDecoupledFaultHandler
extends AbstractSoapInterceptor

Utility interceptor for dealing with faults occurred during processing the one way requests with WSA FaultTo EPR pointing to a decoupled destination. Note that this interceptor is not currently installed by default. It can be installed using @InInterceptors and @OutInterceptors annotations or explicitly added to the list of interceptors.


Field Summary
static String WSA_ACTION
           
 
Constructor Summary
OneWayDecoupledFaultHandler()
           
 
Method Summary
protected  Destination createDecoupledDestination(Exchange exchange, EndpointReferenceType epr)
           
 void handleFault(SoapMessage message)
          Called for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.
 void handleMessage(SoapMessage message)
          Intercepts a message.
 
Methods inherited from class org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
getFaultCodePrefix, getRoles, getUnderstoodHeaders, prepareStackTrace
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, isGET, isRequestor, setAfter, setBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSA_ACTION

public static final String WSA_ACTION
See Also:
Constant Field Values
Constructor Detail

OneWayDecoupledFaultHandler

public OneWayDecoupledFaultHandler()
Method Detail

handleMessage

public void handleMessage(SoapMessage message)
Description copied from interface: Interceptor
Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.


handleFault

public void handleFault(SoapMessage message)
Description copied from interface: Interceptor
Called for all interceptors (in reverse order) on which handleMessage had been successfully invoked, when normal execution of the chain was aborted for some reason.

Specified by:
handleFault in interface Interceptor<SoapMessage>
Overrides:
handleFault in class AbstractPhaseInterceptor<SoapMessage>

createDecoupledDestination

protected Destination createDecoupledDestination(Exchange exchange,
                                                 EndpointReferenceType epr)

Apache CXF API

Apache CXF