Class MllpExceptionIoFilter

  • All Implemented Interfaces:
    org.apache.mina.core.filterchain.IoFilter

    public class MllpExceptionIoFilter
    extends org.apache.mina.core.filterchain.IoFilterAdapter
    This IoFilterAdapter is used to catch all exceptions occurred inside the MllpConsumer filterChain, before the message reaches the CamelRoute, and send appropriate response created by defined exceptionHandler either over RouteBuilder exception handling using "consumer.bridgeErrorHandler=true" or directly by "exceptionHandler=#myExceptionHandlerBean"
    Author:
    Boris Stanojevic
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.mina.core.filterchain.IoFilter

        org.apache.mina.core.filterchain.IoFilter.NextFilter
    • Constructor Summary

      Constructors 
      Constructor Description
      MllpExceptionIoFilter​(org.apache.camel.component.mina.MinaConsumer minaConsumer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void exceptionCaught​(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter, org.apache.mina.core.session.IoSession session, Throwable cause)  
      • Methods inherited from class org.apache.mina.core.filterchain.IoFilterAdapter

        destroy, event, filterClose, filterWrite, init, inputClosed, messageReceived, messageSent, onPostAdd, onPostRemove, onPreAdd, onPreRemove, sessionClosed, sessionCreated, sessionIdle, sessionOpened, toString
    • Constructor Detail

      • MllpExceptionIoFilter

        public MllpExceptionIoFilter​(org.apache.camel.component.mina.MinaConsumer minaConsumer)
    • Method Detail

      • exceptionCaught

        public void exceptionCaught​(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter,
                                    org.apache.mina.core.session.IoSession session,
                                    Throwable cause)
        Specified by:
        exceptionCaught in interface org.apache.mina.core.filterchain.IoFilter
        Overrides:
        exceptionCaught in class org.apache.mina.core.filterchain.IoFilterAdapter