Enum DataFormat

  • All Implemented Interfaces:
    Serializable, Comparable<DataFormat>

    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.
    • Enum Constant Detail

      • 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 Detail

      • values

        public static DataFormat[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DataFormat c : DataFormat.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DataFormat valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null