@Deprecated public static enum Content.Encoding extends Enum<Content.Encoding>
Enum Constant and Description |
---|
COMPRESSED
Deprecated.
The content will be compressed for transport.
|
ENCRYPTED
Deprecated.
The content will be encrypted for transport.
|
NONE
Deprecated.
No encoding will be applied to the content.
|
Modifier and Type | Method and Description |
---|---|
static Content.Encoding |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static Content.Encoding[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Content.Encoding NONE
public static final Content.Encoding ENCRYPTED
The ENCRYPTED version uses weak XXTEA encryption. Instead consider
using a third-party library to encrypt all or part of the data used
to create the Content
, or rely on transport-level encryption.
public static final Content.Encoding COMPRESSED
public static Content.Encoding[] values()
for (Content.Encoding c : Content.Encoding.values()) System.out.println(c);
public static Content.Encoding 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 nullCopyright © 2016 Push Technology Ltd. All Rights Reserved.