org.apache.cxf.message.Message.getContentFormats()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(165)

本文整理了Java中org.apache.cxf.message.Message.getContentFormats()方法的一些代码示例,展示了Message.getContentFormats()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getContentFormats()方法的具体详情如下:
包路径:org.apache.cxf.message.Message
类名称:Message
方法名:getContentFormats

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) {

相关文章