public enum ThriftExchangeProtocol extends Enum<ThriftExchangeProtocol>
Enum Constant and Description |
---|
BINARY
Binary protocol
|
COMPACT
Compact binary protocol
|
JSON
Full JSON protocol
|
SJSON
Simple JSON protocol
|
Modifier and Type | Method and Description |
---|---|
static ThriftExchangeProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThriftExchangeProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThriftExchangeProtocol BINARY
public static final ThriftExchangeProtocol JSON
public static final ThriftExchangeProtocol SJSON
public static final ThriftExchangeProtocol COMPACT
public static ThriftExchangeProtocol[] values()
for (ThriftExchangeProtocol c : ThriftExchangeProtocol.values()) System.out.println(c);
public static ThriftExchangeProtocol valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullApache Camel