Enum GrizzlyAsyncHttpProviderConfig.Property
java.lang.Object
java.lang.Enum<GrizzlyAsyncHttpProviderConfig.Property>
com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProviderConfig.Property
- All Implemented Interfaces:
Serializable,Comparable<GrizzlyAsyncHttpProviderConfig.Property>,java.lang.constant.Constable
- Enclosing class:
- GrizzlyAsyncHttpProviderConfig
public static enum GrizzlyAsyncHttpProviderConfig.Property
extends Enum<GrizzlyAsyncHttpProviderConfig.Property>
Grizzly-specific customization properties. Each property describes
what it's used for, what the default value is (if any), and what
the expected type the value of the property should be.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBy default, Websocket messages that are fragmented will be buffered.true (default), if an HTTP response has to be decompressed (if compressed by a server), or false if decompression has to be delegated to a user.Defines the maximum HTTP packet header size.If this property is specified with a customTransportCustomizerinstance, theTCPNIOTransportinstance that is created byGrizzlyAsyncHttpProviderwill be passed to the customizer bypassing all default configuration of the transport typically performed by the provider. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TRANSPORT_CUSTOMIZER
If this property is specified with a customTransportCustomizerinstance, theTCPNIOTransportinstance that is created byGrizzlyAsyncHttpProviderwill be passed to the customizer bypassing all default configuration of the transport typically performed by the provider. The type of the value associated with this property must beTransportCustomizer.class.- See Also:
-
MAX_HTTP_PACKET_HEADER_SIZE
Defines the maximum HTTP packet header size. -
BUFFER_WEBSOCKET_FRAGMENTS
By default, Websocket messages that are fragmented will be buffered. Once all fragments have been accumulated, the appropriate onMessage() call back will be invoked with the complete message. If this functionality is not desired, set this property to false. -
DECOMPRESS_RESPONSE
true (default), if an HTTP response has to be decompressed (if compressed by a server), or false if decompression has to be delegated to a user.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-