org.apache.camel.component.cxf
Enum DataFormat

java.lang.Object
  extended by java.lang.Enum<DataFormat>
      extended by org.apache.camel.component.cxf.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 Summary
MESSAGE
          MESSAGE is the raw message that is received from the transport layer.
PAYLOAD
          PAYLOAD is the message payload of the message after message configured in the CXF endpoint is applied.
POJO
          POJOs (Plain old Java objects) are the Java parameters to the method it is invoking on the target server.
 
Method Summary
static DataFormat valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataFormat[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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.


MESSAGE

public static final DataFormat MESSAGE
MESSAGE is the raw message that is received from the transport layer. Streaming and non-streaming are both supported.


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


Apache CAMEL