/** {@inheritDoc} */ public void after(String target, Exchange exchange) throws HandlerException { System.out.println("-------------- " + exchange.getProvider().getName()); if (exchange.getPhase() == ExchangePhase.OUT && !exchange.getProvider().getName().toString().endsWith("OrderProcessREST")) { handleExchange(exchange); } }
/** {@inheritDoc} */ public void before(String target, Exchange exchange) throws HandlerException { if (exchange.getPhase() == ExchangePhase.IN && !exchange.getProvider().getName().toString().endsWith("OrderProcessREST")) { handleExchange(exchange); } }