Class AbstractSafeInterceptor

  • All Implemented Interfaces:
    org.apache.cxf.binding.soap.interceptor.SoapInterceptor, org.apache.cxf.interceptor.Interceptor<org.apache.cxf.binding.soap.SoapMessage>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
    Direct Known Subclasses:
    AbstractAuditInterceptor, FaultMessageOutInterceptor, InPayloadLoggerInterceptor, OutPayloadLoggerInterceptor

    public abstract class AbstractSafeInterceptor
    extends org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
    CXF interceptor which logs all errors instead of letting them break the processing flow.
    Author:
    Dmytro Rud
    • Constructor Detail

      • AbstractSafeInterceptor

        protected AbstractSafeInterceptor​(String phase)
        Constructs the interceptor.
        Parameters:
        phase - the phase in which the interceptor is run.
    • Method Detail

      • process

        protected abstract void process​(org.apache.cxf.binding.soap.SoapMessage message)
        Performs the actual work, being called from handleMessage(SoapMessage).
        Parameters:
        message - CXF message to process.
      • handleMessage

        public final void handleMessage​(org.apache.cxf.binding.soap.SoapMessage message)
        Calls process(org.apache.cxf.binding.soap.SoapMessage) and "forwards" all exceptions to the error log.
        Parameters:
        message - CXF message to process.