public class RequestParameters extends com.marklogic.client.impl.RequestParametersImplementation implements Map<String,List<String>>
Constructor and Description |
---|
RequestParameters()
Zero-argument constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
String... values)
Appends a list of values to the list for a parameter.
|
void |
add(String name,
String value)
Appends a value to the list for a parameter.
|
void |
clear()
Removes all parameters.
|
boolean |
containsKey(Object key)
Checks whether the parameter name has been specified.
|
boolean |
containsValue(Object value)
Checks whether any parameters have the value.
|
RequestParameters |
copy(String prefix)
Creates a copy of the parameters, prepending a namespace prefix
to each parameter name.
|
Set<Map.Entry<String,List<String>>> |
entrySet()
Returns a set of parameter-list entries.
|
List<String> |
get(Object key)
Gets the values for a parameter name.
|
boolean |
isEmpty()
Returns whether or not any request parameters have been specified.
|
Set<String> |
keySet()
Returns the set of specified parameter names.
|
List<String> |
put(String key,
List<String> value)
Sets the values of a parameter name, returning the previous values if any.
|
void |
put(String name,
String... values)
Sets a parameter to a list of values.
|
void |
put(String name,
String value)
Set a parameter to a single value.
|
void |
putAll(Map<? extends String,? extends List<String>> m)
Adds existing parameter names and values.
|
List<String> |
remove(Object key)
Removes a parameter name, returning its values if any.
|
int |
size()
Returns the number of request parameters.
|
Collection<List<String>> |
values()
Returns a list of value lists.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public void put(String name, String value)
name
- the parameter namevalue
- the value of the parameterpublic void put(String name, String... values)
name
- the parametervalues
- the list of valuespublic void add(String name, String value)
name
- the parametervalue
- the value to add to the listpublic void add(String name, String... values)
name
- the parametervalues
- the values to add to the listpublic int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey
in interface Map<String,List<String>>
public boolean containsValue(Object value)
containsValue
in interface Map<String,List<String>>
public List<String> put(String key, List<String> value)
public List<String> remove(Object key)
public void putAll(Map<? extends String,? extends List<String>> m)
public void clear()
public Collection<List<String>> values()
public Set<Map.Entry<String,List<String>>> entrySet()
public RequestParameters copy(String prefix)
prefix
- the prefix to prependCopyright © 2013-2016 MarkLogic Corporation.