Enum BindingStyle
- java.lang.Object
-
- java.lang.Enum<BindingStyle>
-
- org.apache.camel.component.cxf.jaxrs.BindingStyle
-
- All Implemented Interfaces:
Serializable
,Comparable<BindingStyle>
public enum BindingStyle extends Enum<BindingStyle>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Custom
A custom binding set by the user.Default
This is the traditional binding style, which simply dumps theMessageContentsList
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BindingStyle
valueOf(String name)
Returns the enum constant of this type with the specified name.static BindingStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SimpleConsumer
public static final 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 ofMessageContentsList
. It also also adds more flexibility and simplicity to the response mapping.
-
Default
public static final BindingStyle Default
This is the traditional binding style, which simply dumps theMessageContentsList
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.
-
Custom
public static final BindingStyle Custom
A custom binding set by the user.
-
-
Method Detail
-
values
public static 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 (BindingStyle c : 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 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 nameNullPointerException
- if the argument is null
-
-