Enum Class DataFormat

java.lang.Object
java.lang.Enum<DataFormat>
org.apache.camel.component.cxf.common.DataFormat
All Implemented Interfaces:
Serializable, Comparable<DataFormat>, Constable

public enum DataFormat extends Enum<DataFormat>
The data format the user expects to see at the Camel CXF components. It can be configured as a property (DataFormat) in the Camel CXF endpoint.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    CXF_MESSAGE is the message that is received from the transport layer and then processed through the full set of CXF interceptors.
    Deprecated.
    - equivalent to RAW mode for Camel 2.x
    PAYLOAD is the message payload of the message after message configured in the CXF endpoint is applied.
    POJOs (Plain old Java objects) are the Java parameters to the method it is invoking on the target server.
    RAW is the raw message that is received from the transport layer.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    static DataFormat
    Returns the enum constant of this class with the specified name.
    static DataFormat[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PAYLOAD

      public static final DataFormat PAYLOAD
      PAYLOAD is the message payload of the message after message configured in the CXF endpoint is applied. Streaming and non-streaming are both supported.
    • RAW

      public static final DataFormat RAW

      RAW is the raw message that is received from the transport layer. Streaming and non-streaming are both supported.

      Only the interceptors of these phases are preserved:

      In phases: {Phase.RECEIVE , Phase.INVOKE, Phase.POST_INVOKE}

      Out phases: {Phase.PREPARE_SEND, Phase.WRITE, Phase.SEND, Phase.PREPARE_SEND_ENDING}

    • MESSAGE

      @Deprecated public static final DataFormat MESSAGE
      Deprecated.
      - equivalent to RAW mode for Camel 2.x
      MESSAGE is the raw message that is received from the transport layer. Streaming and non-streaming are both supported.
    • CXF_MESSAGE

      public static final DataFormat CXF_MESSAGE
      CXF_MESSAGE is the message that is received from the transport layer and then processed through the full set of CXF interceptors. This provides the same functionality as the CXF MESSAGE mode providers.
    • POJO

      public static final DataFormat POJO
      POJOs (Plain old Java objects) are the Java parameters to the method it is invoking on the target server. The "serviceClass" property must be included in the endpoint. Streaming is not available for this data format.
  • Method Details

    • values

      public static DataFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DataFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • dealias

      public DataFormat dealias()