public static enum SimpleAsyncHttpClient.ErrorDocumentBehaviour extends Enum<SimpleAsyncHttpClient.ErrorDocumentBehaviour>
Enum Constant and Description |
---|
ACCUMULATE
Accumulate error documents in memory but do not consume.
|
OMIT
Omit error documents.
|
WRITE
Write error documents as usual via
BodyConsumer.consume(java.nio.ByteBuffer) . |
Modifier and Type | Method and Description |
---|---|
static SimpleAsyncHttpClient.ErrorDocumentBehaviour |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleAsyncHttpClient.ErrorDocumentBehaviour[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleAsyncHttpClient.ErrorDocumentBehaviour WRITE
BodyConsumer.consume(java.nio.ByteBuffer)
.public static final SimpleAsyncHttpClient.ErrorDocumentBehaviour ACCUMULATE
public static final SimpleAsyncHttpClient.ErrorDocumentBehaviour OMIT
BodyConsumer
.public static SimpleAsyncHttpClient.ErrorDocumentBehaviour[] values()
for (SimpleAsyncHttpClient.ErrorDocumentBehaviour c : SimpleAsyncHttpClient.ErrorDocumentBehaviour.values()) System.out.println(c);
public static SimpleAsyncHttpClient.ErrorDocumentBehaviour 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 © 2015. All rights reserved.