public static final class HttpDataSource.RequestProperties
extends java.lang.Object
Constructor and Description |
---|
RequestProperties() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all request properties.
|
void |
clearAndSet(java.util.Map<java.lang.String,java.lang.String> properties)
Removes all properties previously existing and sets the keys and values of the map.
|
java.util.Map<java.lang.String,java.lang.String> |
getSnapshot()
Gets a snapshot of the request properties.
|
void |
remove(java.lang.String name)
Removes a request property by name.
|
void |
set(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the keys and values contained in the map.
|
void |
set(java.lang.String name,
java.lang.String value)
Sets the specified property
value for the specified name . |
public void set(java.lang.String name, java.lang.String value)
value
for the specified name
. If a property for
this name previously existed, the old value is replaced by the specified value.name
- The name of the request property.value
- The value of the request property.public void set(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- The request properties.public void clearAndSet(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- The request properties.public void remove(java.lang.String name)
name
- The name of the request property to remove.public void clear()
public java.util.Map<java.lang.String,java.lang.String> getSnapshot()