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.GrizzlyAsyncHttpProviderConfig.Property
Modifier and Type | Class and Description |
---|---|
static class |
GrizzlyAsyncHttpProviderConfig.Property
Grizzly-specific customization properties.
|
Constructor and Description |
---|
GrizzlyAsyncHttpProviderConfig() |
Modifier and Type | Method and Description |
---|---|
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
|
public AsyncHttpProviderConfig addProperty(GrizzlyAsyncHttpProviderConfig.Property name, Object value)
AsyncHttpProvider
addProperty
in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
name
- the name of the propertyvalue
- the value of the propertyIllegalArgumentException
- if the type of the specified value
does not match the expected type of the specified GrizzlyAsyncHttpProviderConfig.Property
.public Object getProperty(GrizzlyAsyncHttpProviderConfig.Property name)
getProperty
in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
public Object removeProperty(GrizzlyAsyncHttpProviderConfig.Property name)
removeProperty
in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
public Set<Map.Entry<GrizzlyAsyncHttpProviderConfig.Property,Object>> propertiesSet()
propertiesSet
in interface AsyncHttpProviderConfig<GrizzlyAsyncHttpProviderConfig.Property,Object>
Copyright © 2015. All Rights Reserved.