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