Codota Logo
Message.getContentFormats
Code IndexAdd Codota to your IDE (free)

How to use
getContentFormats
method
in
org.apache.cxf.message.Message

Best Java code snippets using org.apache.cxf.message.Message.getContentFormats (Showing top 13 results out of 315)

  • Common ways to obtain Message
private void myMethod () {
Message m =
  • Codota IconPhaseInterceptorChain.getCurrentMessage()
  • Codota IconJAXRSUtils.getCurrentMessage()
  • Codota IconExchange exchange;exchange.getOutMessage()
  • Smart code suggestions by Codota
}
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) {
org.apache.cxf.messageMessagegetContentFormats

Popular methods of Message

  • get
  • getExchange
  • put
  • getContent
    Retrieve the encapsulated content as a particular type. The content is available as a result type if
  • setContent
    Provide the encapsulated content as a particular type (a result type if message is outbound, a sourc
  • getInterceptorChain
    Returns a live copy of the messages interceptor chain. This is useful when an interceptor wants to m
  • getContextualProperty
    Queries the Message object's metadata for a specific property.
  • setExchange
  • getAttachments
    Retrieve any binary attachments associated with the message.
  • containsKey
  • remove
  • setInterceptorChain
  • remove,
  • setInterceptorChain,
  • removeContent,
  • setAttachments,
  • getDestination,
  • putAll,
  • entrySet,
  • setContextualProperty,
  • getId

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now