com.ning.http.client.providers.apache
Class ApacheAsyncHttpProviderConfig

java.lang.Object
  extended by com.ning.http.client.providers.apache.ApacheAsyncHttpProviderConfig
All Implemented Interfaces:
AsyncHttpProviderConfig<String,String>

public class ApacheAsyncHttpProviderConfig
extends Object
implements AsyncHttpProviderConfig<String,String>


Constructor Summary
ApacheAsyncHttpProviderConfig()
           
 
Method Summary
 AsyncHttpProviderConfig addProperty(String name, String value)
          Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider
 String getProperty(String name)
          Return the value associated with the property's name
 ScheduledExecutorService getReaper()
           
 Set<Map.Entry<String,String>> propertiesSet()
          Return the curent entry set.
 String removeProperty(String name)
          Remove the value associated with the property's name
 void setReaper(ScheduledExecutorService reaper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheAsyncHttpProviderConfig

public ApacheAsyncHttpProviderConfig()
Method Detail

addProperty

public AsyncHttpProviderConfig addProperty(String name,
                                           String value)
Description copied from interface: AsyncHttpProviderConfig
Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider

Specified by:
addProperty in interface AsyncHttpProviderConfig<String,String>
Parameters:
name - the name of the property
value - the value of the property
Returns:
this instance of AsyncHttpProviderConfig

getProperty

public String getProperty(String name)
Description copied from interface: AsyncHttpProviderConfig
Return the value associated with the property's name

Specified by:
getProperty in interface AsyncHttpProviderConfig<String,String>
Returns:
this instance of AsyncHttpProviderConfig

removeProperty

public String removeProperty(String name)
Description copied from interface: AsyncHttpProviderConfig
Remove the value associated with the property's name

Specified by:
removeProperty in interface AsyncHttpProviderConfig<String,String>
Returns:
true if removed

propertiesSet

public Set<Map.Entry<String,String>> propertiesSet()
Description copied from interface: AsyncHttpProviderConfig
Return the curent entry set.

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

setReaper

public void setReaper(ScheduledExecutorService reaper)

getReaper

public ScheduledExecutorService getReaper()


Copyright © 2014. All Rights Reserved.