本文整理了Java中org.apache.cxf.message.Message.getDestination()
方法的一些代码示例,展示了Message.getDestination()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getDestination()
方法的具体详情如下:
包路径:org.apache.cxf.message.Message
类名称:Message
方法名:getDestination
暂无
代码示例来源:origin: apache/cxf
public Destination getDestination() {
return message.getDestination();
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
public Destination getDestination() {
return message.getDestination();
}
代码示例来源:origin: org.apache.cxf/cxf-api
public Destination getDestination() {
return message.getDestination();
}
代码示例来源:origin: org.apache.cxf/cxf-core
public Destination getDestination() {
return message.getDestination();
}
代码示例来源:origin: org.apache.cxf/cxf-core
protected void setExchangeProperties(Exchange exchange, Message m) {
exchange.put(Bus.class, bus);
if (exchange.getDestination() == null) {
exchange.setDestination(m.getDestination());
}
}
代码示例来源:origin: apache/cxf
protected void setExchangeProperties(Exchange exchange, Message m) {
exchange.put(Bus.class, bus);
if (exchange.getDestination() == null) {
exchange.setDestination(m.getDestination());
}
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
protected void setExchangeProperties(Exchange exchange, Message m) {
exchange.put(Bus.class, bus);
if (exchange.getDestination() == null) {
exchange.setDestination(m.getDestination());
}
}
代码示例来源:origin: org.apache.cxf/cxf-api
protected void setExchangeProperties(Exchange exchange, Message m) {
exchange.put(Bus.class, bus);
if (exchange.getDestination() == null) {
exchange.setDestination(m.getDestination());
}
}
代码示例来源:origin: apache/cxf
public static String getOriginalAddress(Message m) {
Destination d = m.getDestination();
return d == null ? "/" : d.getAddress().getAddress().getValue();
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
public static String getOriginalAddress(Message m) {
Destination d = m.getDestination();
return d == null ? "/" : d.getAddress().getAddress().getValue();
}
代码示例来源:origin: apache/cxf
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());
}
}
代码示例来源:origin: org.apache.cxf/cxf-core
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());
}
}
代码示例来源:origin: org.apache.cxf/cxf-api
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());
}
}
代码示例来源:origin: apache/cxf
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());
}
}
代码示例来源:origin: org.apache.cxf/cxf-api
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());
}
}
代码示例来源:origin: org.apache.cxf/cxf-core
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());
}
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
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());
}
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
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());
}
}
代码示例来源:origin: apache/cxf
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());
}
}
代码示例来源:origin: apache/cxf
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();
}
}
内容来源于网络,如有侵权,请联系作者删除!