public Destination getDestination() { return message.getDestination(); }
public Destination getDestination() { return message.getDestination(); }
public Destination getDestination() { return message.getDestination(); }
public Destination getDestination() { return message.getDestination(); }
protected void setExchangeProperties(Exchange exchange, Message m) { exchange.put(Bus.class, bus); if (exchange.getDestination() == null) { exchange.setDestination(m.getDestination()); } }
protected void setExchangeProperties(Exchange exchange, Message m) { exchange.put(Bus.class, bus); if (exchange.getDestination() == null) { exchange.setDestination(m.getDestination()); } }
protected void setExchangeProperties(Exchange exchange, Message m) { exchange.put(Bus.class, bus); if (exchange.getDestination() == null) { exchange.setDestination(m.getDestination()); } }
protected void setExchangeProperties(Exchange exchange, Message m) { exchange.put(Bus.class, bus); if (exchange.getDestination() == null) { exchange.setDestination(m.getDestination()); } }
public static String getOriginalAddress(Message m) { Destination d = m.getDestination(); return d == null ? "/" : d.getAddress().getAddress().getValue(); }
public static String getOriginalAddress(Message m) { Destination d = m.getDestination(); return d == null ? "/" : d.getAddress().getAddress().getValue(); }
private void addToChain(InterceptorChain chain, Message m) { Collection<InterceptorProvider> providers = CastUtils.cast((Collection<?>)m.get(Message.INTERCEPTOR_PROVIDERS)); if (providers != null) { for (InterceptorProvider p : providers) { chain.add(p.getInInterceptors()); } } Collection<Interceptor<? extends Message>> is = CastUtils.cast((Collection<?>)m.get(Message.IN_INTERCEPTORS)); if (is != null) { chain.add(is); } if (m.getDestination() instanceof InterceptorProvider) { chain.add(((InterceptorProvider)m.getDestination()).getInInterceptors()); } }
private void addToChain(InterceptorChain chain, Message m) { Collection<InterceptorProvider> providers = CastUtils.cast((Collection<?>)m.get(Message.INTERCEPTOR_PROVIDERS)); if (providers != null) { for (InterceptorProvider p : providers) { chain.add(p.getInInterceptors()); } } Collection<Interceptor<? extends Message>> is = CastUtils.cast((Collection<?>)m.get(Message.IN_INTERCEPTORS)); if (is != null) { chain.add(is); } if (m.getDestination() instanceof InterceptorProvider) { chain.add(((InterceptorProvider)m.getDestination()).getInInterceptors()); } }
private void addToChain(PhaseInterceptorChain chain, Message m) { Collection<InterceptorProvider> providers = CastUtils.cast((Collection<?>)m.get(Message.INTERCEPTOR_PROVIDERS)); if (providers != null) { for (InterceptorProvider p : providers) { chain.add(p.getOutFaultInterceptors()); } } Collection<Interceptor<? extends Message>> is = CastUtils.cast((Collection<?>)m.get(Message.FAULT_OUT_INTERCEPTORS)); if (is != null) { chain.add(is); } if (m.getDestination() instanceof InterceptorProvider) { chain.add(((InterceptorProvider)m.getDestination()).getOutFaultInterceptors()); } }
private void addToChain(PhaseInterceptorChain chain, Message m) { Collection<InterceptorProvider> providers = CastUtils.cast((Collection<?>)m.get(Message.INTERCEPTOR_PROVIDERS)); if (providers != null) { for (InterceptorProvider p : providers) { chain.add(p.getOutFaultInterceptors()); } } Collection<Interceptor<? extends Message>> is = CastUtils.cast((Collection<?>)m.get(Message.FAULT_OUT_INTERCEPTORS)); if (is != null) { chain.add(is); } if (m.getDestination() instanceof InterceptorProvider) { chain.add(((InterceptorProvider)m.getDestination()).getOutFaultInterceptors()); } }
private void addToChain(InterceptorChain chain, Message m) { Collection<InterceptorProvider> providers = CastUtils.cast((Collection<?>)m.get(Message.INTERCEPTOR_PROVIDERS)); if (providers != null) { for (InterceptorProvider p : providers) { chain.add(p.getInInterceptors()); } } Collection<Interceptor<? extends Message>> is = CastUtils.cast((Collection<?>)m.get(Message.IN_INTERCEPTORS)); if (is != null) { chain.add(is); } if (m.getDestination() instanceof InterceptorProvider) { chain.add(((InterceptorProvider)m.getDestination()).getInInterceptors()); } }
private void addToChain(PhaseInterceptorChain chain, Message m) { Collection<InterceptorProvider> providers = CastUtils.cast((Collection<?>)m.get(Message.INTERCEPTOR_PROVIDERS)); if (providers != null) { for (InterceptorProvider p : providers) { chain.add(p.getOutFaultInterceptors()); } } Collection<Interceptor<? extends Message>> is = CastUtils.cast((Collection<?>)m.get(Message.FAULT_OUT_INTERCEPTORS)); if (is != null) { chain.add(is); } if (m.getDestination() instanceof InterceptorProvider) { chain.add(((InterceptorProvider)m.getDestination()).getOutFaultInterceptors()); } }
private void addToChain(InterceptorChain chain, Message m) { Collection<InterceptorProvider> providers = CastUtils.cast((Collection<?>)m.get(Message.INTERCEPTOR_PROVIDERS)); if (providers != null) { for (InterceptorProvider p : providers) { chain.add(p.getInInterceptors()); } } Collection<Interceptor<? extends Message>> is = CastUtils.cast((Collection<?>)m.get(Message.IN_INTERCEPTORS)); if (is != null) { chain.add(is); } if (m.getDestination() instanceof InterceptorProvider) { chain.add(((InterceptorProvider)m.getDestination()).getInInterceptors()); } }
private void addToChain(PhaseInterceptorChain chain, Message m) { Collection<InterceptorProvider> providers = CastUtils.cast((Collection<?>)m.get(Message.INTERCEPTOR_PROVIDERS)); if (providers != null) { for (InterceptorProvider p : providers) { chain.add(p.getOutFaultInterceptors()); } } Collection<Interceptor<? extends Message>> is = CastUtils.cast((Collection<?>)m.get(Message.FAULT_OUT_INTERCEPTORS)); if (is != null) { chain.add(is); } if (m.getDestination() instanceof InterceptorProvider) { chain.add(((InterceptorProvider)m.getDestination()).getOutFaultInterceptors()); } }
private static void modifyChain(PhaseInterceptorChain chain, Message m) { if (m == null) { return; } Collection<InterceptorProvider> providers = CastUtils.cast((Collection<?>)m.get(Message.INTERCEPTOR_PROVIDERS)); if (providers != null) { for (InterceptorProvider p : providers) { chain.add(p.getOutInterceptors()); } } Collection<Interceptor<? extends Message>> is = CastUtils.cast((Collection<?>)m.get(Message.OUT_INTERCEPTORS)); if (is != null) { chain.add(is); } if (m.getDestination() instanceof InterceptorProvider) { chain.add(((InterceptorProvider)m.getDestination()).getOutInterceptors()); } }
public void onMessage(Message message) { try { // HTTP seems to need this right now... ExchangeImpl ex = new ExchangeImpl(); ex.setInMessage(message); Conduit backChannel = message.getDestination().getBackChannel(message); MessageImpl res = new MessageImpl(); ex.setOutMessage(res); res.put(Message.CONTENT_TYPE, "text/xml"); backChannel.prepare(res); OutputStream out = res.getContent(OutputStream.class); InputStream is = resource.openStream(); IOUtils.copy(is, out, 2048); out.flush(); out.close(); is.close(); backChannel.close(res); } catch (Exception e) { e.printStackTrace(); } }