public enum Transfer extends Enum<Transfer>
| Enum Constant and Description |
|---|
CHUNKED
Send the response stream as HTTP chunks.
|
EVENT_STREAM
Send the response stream as Server-Sent Events.
|
NON_CHUNKED
Load in memory all the stream data before sending it as a non chunked HTTP response.
|
| Modifier and Type | Method and Description |
|---|---|
static Transfer |
get(String transfer) |
String |
toString() |
static Transfer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transfer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transfer NON_CHUNKED
public static final Transfer CHUNKED
public static final Transfer EVENT_STREAM
public static Transfer[] values()
for (Transfer c : Transfer.values()) System.out.println(c);
public static Transfer 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. All rights reserved.