Package com.rabbitmq.http.client
Enum GetEncoding
- java.lang.Object
-
- java.lang.Enum<GetEncoding>
-
- com.rabbitmq.http.client.GetEncoding
-
- All Implemented Interfaces:
Serializable
,Comparable<GetEncoding>
public enum GetEncoding extends Enum<GetEncoding>
The type of expected encoding when consuming messages.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GetEncoding
valueOf(String name)
Returns the enum constant of this type with the specified name.static GetEncoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final GetEncoding AUTO
The payload will be returned as a string if it is valid UTF-8, and base64 encoded otherwise
-
BASE64
public static final GetEncoding BASE64
The payload will be base64 encoded
-
-
Method Detail
-
values
public static GetEncoding[] 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 (GetEncoding c : GetEncoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GetEncoding 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
-
-