com.ning.http.client.providers.netty
Class NettyAsyncHttpProviderConfig

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

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


Field Summary
static String ALLOW_NESTED_REQUEST
          Allow nested request from any AsyncHandler
static String EXECUTE_ASYNC_CONNECT
          Execute the connect operation asynchronously.
static String USE_BLOCKING_IO
          Use Netty's blocking IO stategy.
static String USE_DIRECT_BYTEBUFFER
          Use direct ByteBuffer
 
Constructor Summary
NettyAsyncHttpProviderConfig()
           
 
Method Summary
 NettyAsyncHttpProviderConfig addProperty(String name, Object value)
          Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider
 Object getProperty(String name)
          Return the value associated with the property's name
 Set<Map.Entry<String,Object>> propertiesSet()
          Return the curent entry set.
 Object removeProperty(String 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
 

Field Detail

USE_BLOCKING_IO

public static final String USE_BLOCKING_IO
Use Netty's blocking IO stategy.

See Also:
Constant Field Values

USE_DIRECT_BYTEBUFFER

public static final String USE_DIRECT_BYTEBUFFER
Use direct ByteBuffer

See Also:
Constant Field Values

EXECUTE_ASYNC_CONNECT

public static final String EXECUTE_ASYNC_CONNECT
Execute the connect operation asynchronously.

See Also:
Constant Field Values

ALLOW_NESTED_REQUEST

public static final String ALLOW_NESTED_REQUEST
Allow nested request from any AsyncHandler

See Also:
Constant Field Values
Constructor Detail

NettyAsyncHttpProviderConfig

public NettyAsyncHttpProviderConfig()
Method Detail

addProperty

public NettyAsyncHttpProviderConfig addProperty(String name,
                                                Object value)
Add a property that will be used when the AsyncHttpClient initialize its AsyncHttpProvider

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

getProperty

public Object getProperty(String name)
Return the value associated with the property's name

Specified by:
getProperty in interface AsyncHttpProviderConfig<String,Object>
Parameters:
name -
Returns:
this instance of AsyncHttpProviderConfig

removeProperty

public Object removeProperty(String name)
Remove the value associated with the property's name

Specified by:
removeProperty in interface AsyncHttpProviderConfig<String,Object>
Parameters:
name -
Returns:
true if removed

propertiesSet

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

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


Copyright © 2010. All Rights Reserved.