org.apache.cxf.interceptor

## Interface Interceptor<T extends Message>

- All Known Subinterfaces:
    PhaseInterceptor<T>
  All Known Implementing Classes:
    AbstractEndpointSelectionInterceptor, AbstractInDatabindingInterceptor, AbstractLoggingInterceptor, AbstractOutDatabindingInterceptor, AbstractPhaseInterceptor, AttachmentInInterceptor, AttachmentOutInterceptor, AttachmentOutInterceptor.AttachmentOutEndingInterceptor, BareInInterceptor, BareOutInterceptor, ClientFaultConverter, DocLiteralInInterceptor, FaultOutInterceptor, FIStaxInInterceptor, FIStaxOutInterceptor, LoggingInInterceptor, LoggingOutInterceptor, MAPAggregator, MessageSenderInterceptor, MessageSenderInterceptor.MessageSenderEndingInterceptor, OneWayProcessorInterceptor, OutgoingChainInterceptor, ServiceInvokerInterceptor, StaxInEndingInterceptor, StaxInInterceptor, StaxOutEndingInterceptor, StaxOutInterceptor, TransformInInterceptor, TransformOutInterceptor, URIMappingInterceptor, WrappedOutInterceptor, WrappedOutInterceptor.WrappedOutEndingInterceptor

      public interface Interceptor<T extends Message>

  Base interface for all interceptors.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handleFault(T 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(T message)` Intercepts a message.

- - ### Method Detail

    - #### handleMessage

          void handleMessage(T message)
                             throws Fault

      Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.
      Parameters:
        `message` -
      Throws:
        `Fault`

    - #### handleFault

          void handleFault(T 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.
      Parameters:
        `message` -

Apache CXF