com.ning.http.client
Interface AsyncHttpProviderConfig<U,V>

All Known Implementing Classes:
ApacheAsyncHttpProviderConfig, JDKAsyncHttpProviderConfig, NettyAsyncHttpProviderConfig

public interface AsyncHttpProviderConfig<U,V>

AsyncHttpProvider proprietary configurable properties. Note that properties are AsyncHttpProvider dependent, so make sure you consult the AsyncHttpProvider's documentation about what is supported and what's not.


Method Summary
 AsyncHttpProviderConfig addProperty(U name, V value)
          Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider
 V getProperty(U name)
          Return the value associated with the property's name
 Set<Map.Entry<U,V>> propertiesSet()
          Return the curent entry set.
 V removeProperty(U name)
          Remove the value associated with the property's name
 

Method Detail

addProperty

AsyncHttpProviderConfig addProperty(U name,
                                    V value)
Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider

Parameters:
name - the name of the property
value - the value of the property
Returns:
this instance of AsyncHttpProviderConfig

getProperty

V getProperty(U name)
Return the value associated with the property's name

Parameters:
name -
Returns:
this instance of AsyncHttpProviderConfig

removeProperty

V removeProperty(U name)
Remove the value associated with the property's name

Parameters:
name -
Returns:
true if removed

propertiesSet

Set<Map.Entry<U,V>> propertiesSet()
Return the curent entry set.

Returns:
a the curent entry set.


Copyright © 2011. All Rights Reserved.