public class MllpExceptionIoFilter
extends org.apache.mina.core.filterchain.IoFilterAdapter
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
"consumer.exceptionHandler=#myExceptionHandlerBean"Constructor and Description |
---|
MllpExceptionIoFilter(org.apache.camel.component.mina2.Mina2Consumer mina2Consumer) |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter,
org.apache.mina.core.session.IoSession session,
Throwable cause) |
public MllpExceptionIoFilter(org.apache.camel.component.mina2.Mina2Consumer mina2Consumer)
public void exceptionCaught(org.apache.mina.core.filterchain.IoFilter.NextFilter nextFilter, org.apache.mina.core.session.IoSession session, Throwable cause) throws Exception
exceptionCaught
in interface org.apache.mina.core.filterchain.IoFilter
exceptionCaught
in class org.apache.mina.core.filterchain.IoFilterAdapter
Exception
Copyright © 2018 Open eHealth Foundation. All rights reserved.