public static enum NettyEntityWriter.Type extends Enum<NettyEntityWriter.Type>
CHUNKED
is used for chunked data. PRESET
is for buffered data, but the
content length was pre-set by the customer. DELAYED
is for buffered data where the content-length is unknown.
The headers must not be written before the entity is provided by MessageBodyWriter to know the exact length.Modifier and Type | Method and Description |
---|---|
static NettyEntityWriter.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NettyEntityWriter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NettyEntityWriter.Type CHUNKED
public static final NettyEntityWriter.Type PRESET
public static final NettyEntityWriter.Type DELAYED
public static NettyEntityWriter.Type[] values()
for (NettyEntityWriter.Type c : NettyEntityWriter.Type.values()) System.out.println(c);
public static NettyEntityWriter.Type 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 © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.