Class GrizzlyAsyncHttpProviderConfig
java.lang.Object
com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProviderConfig
- All Implemented Interfaces:
AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
public class GrizzlyAsyncHttpProviderConfig
extends Object
implements AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
AsyncHttpProviderConfig implementation that allows customization
of the Grizzly runtime outside of the scope of what the
AsyncHttpClientConfig offers.- Since:
- 1.7.0
- Author:
- The Grizzly Team
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGrizzly-specific customization properties. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.glassfish.grizzly.connectionpool.MultiEndpointPool<SocketAddress> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProperty(GrizzlyAsyncHttpProviderConfig.Property name, Object value) Add a property that will be used when the AsyncHttpClient initialize itsAsyncHttpProviderorg.glassfish.grizzly.connectionpool.MultiEndpointPool<SocketAddress>Return the value associated with the property's nameReturn the curent entry set.Remove the value associated with the property's namevoidsetConnectionPool(org.glassfish.grizzly.connectionpool.MultiEndpointPool<SocketAddress> connectionPool) voidsetSslEngineFactory(SSLEngineFactory sslEngineFactory)
-
Field Details
-
connectionPool
-
-
Constructor Details
-
GrizzlyAsyncHttpProviderConfig
public GrizzlyAsyncHttpProviderConfig()
-
-
Method Details
-
addProperty
public AsyncHttpProviderConfig addProperty(GrizzlyAsyncHttpProviderConfig.Property name, Object value) Description copied from interface:AsyncHttpProviderConfigAdd a property that will be used when the AsyncHttpClient initialize itsAsyncHttpProvider- Specified by:
addPropertyin interfaceAsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object> - Parameters:
name- the name of the propertyvalue- the value of the property- Returns:
- this instance of AsyncHttpProviderConfig
- Throws:
IllegalArgumentException- if the type of the specified value does not match the expected type of the specifiedGrizzlyAsyncHttpProviderConfig.Property.
-
getProperty
Description copied from interface:AsyncHttpProviderConfigReturn the value associated with the property's name- Specified by:
getPropertyin interfaceAsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object> - Returns:
- this instance of AsyncHttpProviderConfig
-
removeProperty
Description copied from interface:AsyncHttpProviderConfigRemove the value associated with the property's name- Specified by:
removePropertyin interfaceAsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object> - Returns:
- true if removed
-
propertiesSet
Description copied from interface:AsyncHttpProviderConfigReturn the curent entry set.- Specified by:
propertiesSetin interfaceAsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object> - Returns:
- a the curent entry set.
-
getConnectionPool
-
setConnectionPool
public void setConnectionPool(org.glassfish.grizzly.connectionpool.MultiEndpointPool<SocketAddress> connectionPool) -
getSslEngineFactory
-
setSslEngineFactory
-