public enum ResponseType extends java.lang.Enum<ResponseType>
Response
class
Response can be either a single entity or a multiple partial messages, in which
case PARTIAL_LAST signifies the end of partial messages
For response contained within a single message/entity the ResponseType shall be
WHOLE
For response with multiple partial messages, we have respnse type sepcified as
[PARTIAL]+ PARTIAL_LAST
meaning, we have One or more PARTIAL response type with one PARTIAL_LAST which
signifies end of partial messages or completion of response messageEnum Constant and Description |
---|
PARTIAL |
PARTIAL_LAST |
WHOLE |
Modifier and Type | Method and Description |
---|---|
static ResponseType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseType WHOLE
public static final ResponseType PARTIAL
public static final ResponseType PARTIAL_LAST
public static ResponseType[] values()
for (ResponseType c : ResponseType.values()) System.out.println(c);
public static ResponseType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2004-2019 Apache MINA Project. All Rights Reserved.