com.ning.http.client.providers.grizzly
Enum GrizzlyAsyncHttpProviderConfig.Property

java.lang.Object
  extended by java.lang.Enum<GrizzlyAsyncHttpProviderConfig.Property>
      extended by com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProviderConfig.Property
All Implemented Interfaces:
Serializable, Comparable<GrizzlyAsyncHttpProviderConfig.Property>
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.


Enum Constant Summary
BUFFER_WEBSOCKET_FRAGMENTS
          By default, Websocket messages that are fragmented will be buffered.
MAX_HTTP_PACKET_HEADER_SIZE
          Defines the maximum HTTP packet header size.
TRANSPORT_CUSTOMIZER
          If this property is specified with a custom TransportCustomizer instance, the TCPNIOTransport instance that is created by GrizzlyAsyncHttpProvider will be passed to the customizer bypassing all default configuration of the transport typically performed by the provider.
 
Method Summary
static GrizzlyAsyncHttpProviderConfig.Property valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GrizzlyAsyncHttpProviderConfig.Property[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TRANSPORT_CUSTOMIZER

public static final GrizzlyAsyncHttpProviderConfig.Property TRANSPORT_CUSTOMIZER
If this property is specified with a custom TransportCustomizer instance, the TCPNIOTransport instance that is created by GrizzlyAsyncHttpProvider will 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 be TransportCustomizer.class.

See Also:
TransportCustomizer

MAX_HTTP_PACKET_HEADER_SIZE

public static final GrizzlyAsyncHttpProviderConfig.Property MAX_HTTP_PACKET_HEADER_SIZE
Defines the maximum HTTP packet header size.


BUFFER_WEBSOCKET_FRAGMENTS

public static final GrizzlyAsyncHttpProviderConfig.Property 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.

Method Detail

values

public static GrizzlyAsyncHttpProviderConfig.Property[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GrizzlyAsyncHttpProviderConfig.Property c : GrizzlyAsyncHttpProviderConfig.Property.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GrizzlyAsyncHttpProviderConfig.Property valueOf(String name)
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 name
NullPointerException - if the argument is null


Copyright © 2014. All Rights Reserved.