protected void cleanUpOutInterceptors(Message outMessage) { // TODO - how can I improve this to provide a specific interceptor chain that just has the // stax, gzip and message sender components, while also ensuring that GZIP is only provided // if its already configured for the endpoint. Iterator<Interceptor<? extends Message>> iterator = outMessage.getInterceptorChain().iterator(); while (iterator.hasNext()) { Interceptor<? extends Message> inInterceptor = iterator.next(); if (!inInterceptor.getClass().equals(StaxOutInterceptor.class) && !inInterceptor.getClass().equals(GZIPOutInterceptor.class) && !inInterceptor.getClass().equals(MessageSenderInterceptor.class)) { outMessage.getInterceptorChain().remove(inInterceptor); } } }
protected void cleanUpOutInterceptors(Message outMessage) { // TODO - how can I improve this to provide a specific interceptor chain that just has the // stax, gzip and message sender components, while also ensuring that GZIP is only provided // if its already configured for the endpoint. Iterator<Interceptor<? extends Message>> iterator = outMessage.getInterceptorChain().iterator(); while (iterator.hasNext()) { Interceptor<? extends Message> inInterceptor = iterator.next(); if (!inInterceptor.getClass().equals(StaxOutInterceptor.class) && !inInterceptor.getClass().equals(GZIPOutInterceptor.class) && !inInterceptor.getClass().equals(MessageSenderInterceptor.class)) { outMessage.getInterceptorChain().remove(inInterceptor); } } }
Iterator<Interceptor<? extends Message>> it = chain.iterator(); String phase = ""; StringBuilder builder = null;
Iterator<Interceptor<? extends Message>> iterator = message.getInterceptorChain().iterator(); while (iterator.hasNext()) { Interceptor<? extends Message> inInterceptor = iterator.next();
Iterator<Interceptor<? extends Message>> iterator = message.getInterceptorChain().iterator(); while (iterator.hasNext()) { Interceptor<? extends Message> outInterceptor = iterator.next();
Iterator<Interceptor<? extends Message>> iterator = mout.getInterceptorChain().iterator(); while (iterator.hasNext()) { Interceptor<? extends Message> inInterceptor = iterator.next();