org.apache.camel.component.cxf.jaxrs
Enum CxfRsEndpoint.BindingStyle

java.lang.Object
  extended by java.lang.Enum<CxfRsEndpoint.BindingStyle>
      extended by org.apache.camel.component.cxf.jaxrs.CxfRsEndpoint.BindingStyle
All Implemented Interfaces:
Serializable, Comparable<CxfRsEndpoint.BindingStyle>
Enclosing class:
CxfRsEndpoint

public static enum CxfRsEndpoint.BindingStyle
extends Enum<CxfRsEndpoint.BindingStyle>


Enum Constant Summary
Default
          This is the traditional binding style, which simply dumps the MessageContentsList coming in from the CXF stack onto the IN message body.
SimpleConsumer
          Only available for consumers. This binding style processes request parameters, multiparts, etc.
 
Method Summary
static CxfRsEndpoint.BindingStyle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CxfRsEndpoint.BindingStyle[] 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

SimpleConsumer

public static final CxfRsEndpoint.BindingStyle SimpleConsumer
Only available for consumers. This binding style processes request parameters, multiparts, etc. and maps them to IN headers, IN attachments and to the message body. It aims to eliminate low-level processing of MessageContentsList. It also also adds more flexibility and simplicity to the response mapping.


Default

public static final CxfRsEndpoint.BindingStyle Default
This is the traditional binding style, which simply dumps the MessageContentsList coming in from the CXF stack onto the IN message body. The user is then responsible for processing it according to the contract defined by the JAX-RS method signature.

Method Detail

values

public static CxfRsEndpoint.BindingStyle[] 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 (CxfRsEndpoint.BindingStyle c : CxfRsEndpoint.BindingStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CxfRsEndpoint.BindingStyle 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