本文整理了Java中org.apache.cxf.message.Message.getContentFormats()
方法的一些代码示例,展示了Message.getContentFormats()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getContentFormats()
方法的具体详情如下:
包路径:org.apache.cxf.message.Message
类名称:Message
方法名:getContentFormats
暂无
代码示例来源:origin: apache/cxf
public Set<Class<?>> getContentFormats() {
return message.getContentFormats();
}
代码示例来源:origin: org.apache.cxf/cxf-api
public Set<Class<?>> getContentFormats() {
return message.getContentFormats();
}
代码示例来源:origin: org.apache.cxf/cxf-core
public Set<Class<?>> getContentFormats() {
return message.getContentFormats();
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
public Set<Class<?>> getContentFormats() {
return message.getContentFormats();
}
代码示例来源:origin: org.jboss.arquillian.extension/arquillian-rest-warp-impl-cxf
/**
* Retrieves the request entity.
*
* @return the request entity
*/
public Object getRequestEntity() {
return requestMessage.getContentFormats().size() > 0 ?
requestMessage.getContent(requestMessage.getContentFormats().iterator().next()) : null;
}
代码示例来源:origin: arquillian/arquillian-extension-rest
/**
* Retrieves the request entity.
*
* @return the request entity
*/
public Object getRequestEntity() {
return requestMessage.getContentFormats().size() > 0 ?
requestMessage.getContent(requestMessage.getContentFormats().iterator().next()) : null;
}
代码示例来源:origin: org.apache.geronimo.modules/geronimo-cxf
public void onMessage(Message m) {
if (m.getContentFormats().contains(InputStream.class)) {
InputStream is = m.getContent(InputStream.class);
try {
is.close();
} catch (Exception e) {
// ignore
}
}
}
});
代码示例来源:origin: apache/cxf
public static void copyContent(Message m1, Message m2) {
for (Class<?> c : m1.getContentFormats()) {
m2.setContent(c, m1.getContent(c));
}
}
代码示例来源:origin: org.apache.cxf/cxf-api
public static void copyContent(Message m1, Message m2) {
for (Class<?> c : m1.getContentFormats()) {
m2.setContent(c, m1.getContent(c));
}
}
代码示例来源:origin: org.apache.cxf/cxf-core
public static void copyContent(Message m1, Message m2) {
for (Class<?> c : m1.getContentFormats()) {
m2.setContent(c, m1.getContent(c));
}
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
public static void copyContent(Message m1, Message m2) {
for (Class<?> c : m1.getContentFormats()) {
m2.setContent(c, m1.getContent(c));
}
}
代码示例来源:origin: Talend/tesb-rt-se
System.out.println(" contents: " + message.getContentFormats());
System.out.println(" keys: " + message.keySet());
XMLStreamReader reader = message.getContent(XMLStreamReader.class);
代码示例来源:origin: org.apache.camel/camel-cxf
protected static Object getContentFromCxf(Message message, DataFormat dataFormat, String encoding) {
Set<Class<?>> contentFormats = message.getContentFormats();
Object answer = null;
if (contentFormats != null) {
内容来源于网络,如有侵权,请联系作者删除!