public static interface HttpDataSource.Factory extends DataSource.Factory
HttpDataSource instances.| Modifier and Type | Method and Description |
|---|---|
void |
clearAllDefaultRequestProperties()
Deprecated.
Use
getDefaultRequestProperties() instead. |
void |
clearDefaultRequestProperty(java.lang.String name)
Deprecated.
Use
getDefaultRequestProperties() instead. |
HttpDataSource |
createDataSource()
Creates a
DataSource instance. |
HttpDataSource.RequestProperties |
getDefaultRequestProperties()
Gets the default request properties used by all
HttpDataSources created by the
factory. |
void |
setDefaultRequestProperty(java.lang.String name,
java.lang.String value)
Deprecated.
Use
getDefaultRequestProperties() instead. |
HttpDataSource createDataSource()
DataSource.FactoryDataSource instance.createDataSource in interface DataSource.FactoryHttpDataSource.RequestProperties getDefaultRequestProperties()
HttpDataSources created by the
factory. Changes to the properties will be reflected in any future requests made by
HttpDataSources created by the factory.@Deprecated
void setDefaultRequestProperty(java.lang.String name,
java.lang.String value)
getDefaultRequestProperties() instead.HttpDataSource instances created by the factory.name - The name of the header field.value - The value of the field.@Deprecated void clearDefaultRequestProperty(java.lang.String name)
getDefaultRequestProperties() instead.HttpDataSource instances created by the factory.name - The name of the header field.@Deprecated void clearAllDefaultRequestProperties()
getDefaultRequestProperties() instead.HttpDataSource instances created by the
factory.