public enum ContentType extends Enum<ContentType>
| Enum Constant and Description |
|---|
ALERT |
APPLICATION_DATA |
CHANGE_CIPHER_SPEC |
HANDSHAKE |
TLS12_CID |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static ContentType |
getTypeByValue(int code)
Returns the content type according to the given code.
|
String |
toString() |
static ContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentType CHANGE_CIPHER_SPEC
public static final ContentType ALERT
public static final ContentType HANDSHAKE
public static final ContentType APPLICATION_DATA
public static final ContentType TLS12_CID
public static ContentType[] values()
for (ContentType c : ContentType.values()) System.out.println(c);
public static ContentType 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 nullpublic int getCode()
public static ContentType getTypeByValue(int code)
code - the code representation of the content type (i.e. 20, 21, 22,
23, 25).public String toString()
toString in class Enum<ContentType>Copyright © 2023 Eclipse Foundation. All rights reserved.