예제 #1
0
 /** {@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);
   }
 }
예제 #2
0
 /** {@inheritDoc} */
 public void before(String target, Exchange exchange) throws HandlerException {
   if (exchange.getPhase() == ExchangePhase.IN
       && !exchange.getProvider().getName().toString().endsWith("OrderProcessREST")) {
     handleExchange(exchange);
   }
 }