com.ning.http.client.providers.grizzly
Class GrizzlyAsyncHttpProviderConfig

java.lang.Object
  extended by 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:
GrizzlyAsyncHttpProviderConfig.Property

Nested Class Summary
static class GrizzlyAsyncHttpProviderConfig.Property
          Grizzly-specific customization properties.
 
Constructor Summary
GrizzlyAsyncHttpProviderConfig()
           
 
Method Summary
 AsyncHttpProviderConfig addProperty(GrizzlyAsyncHttpProviderConfig.Property name, Object value)
          Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider
 Object getProperty(GrizzlyAsyncHttpProviderConfig.Property name)
          Return the value associated with the property's name
 Set<Map.Entry<GrizzlyAsyncHttpProviderConfig.Property,Object>> propertiesSet()
          Return the curent entry set.
 Object removeProperty(GrizzlyAsyncHttpProviderConfig.Property name)
          Remove the value associated with the property's name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrizzlyAsyncHttpProviderConfig

public GrizzlyAsyncHttpProviderConfig()
Method Detail

addProperty

public AsyncHttpProviderConfig addProperty(GrizzlyAsyncHttpProviderConfig.Property name,
                                           Object value)
Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider

Specified by:
addProperty in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
Parameters:
name - the name of the property
value - 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 specified GrizzlyAsyncHttpProviderConfig.Property.

getProperty

public Object getProperty(GrizzlyAsyncHttpProviderConfig.Property name)
Return the value associated with the property's name

Specified by:
getProperty in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
Returns:
this instance of AsyncHttpProviderConfig

removeProperty

public Object removeProperty(GrizzlyAsyncHttpProviderConfig.Property name)
Remove the value associated with the property's name

Specified by:
removeProperty in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
Returns:
true if removed

propertiesSet

public Set<Map.Entry<GrizzlyAsyncHttpProviderConfig.Property,Object>> propertiesSet()
Return the curent entry set.

Specified by:
propertiesSet in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
Returns:
a the curent entry set.


Copyright © 2014. All Rights Reserved.