|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.util.httputil.ParamMap
Multimap
interface to represent name-value pairs. If order of insertion or support
of duplicate name-value pairs is required, use LinkedListMultimap
. For the particular task of
parsing and storing URI parameters, consider UriParameterMap
, which is also the type returned
by com.google.gdata.util.common.net.UriBuilder
instances for URI query
parameters. If you got here because you use FormUrlDecoder
or
CgiParams
, then see the deprecation comments in those classes.
@Deprecated public final class ParamMap
Utility data structure for maintaining URL/CGI params.
Constructor Summary | |
---|---|
ParamMap()
Deprecated. |
Method Summary | |
---|---|
void |
append(java.lang.String name,
java.lang.String value)
Deprecated. use Multimap.put(name, value) |
boolean |
containsKey(java.lang.String name)
Deprecated. Currently used only by unit tests. |
java.lang.String[] |
get(java.lang.String name)
Deprecated. Use Multimap.get(name) and convert to an array only if
you absolutely have to. |
void |
put(java.lang.String name,
java.lang.String[] values)
Deprecated. Use Multimap.putAll(name, collection) , first converting
an array to a list with Arrays.asList(values) if the collection
is not already available. |
java.util.Map<java.lang.String,java.lang.String[]> |
toMap()
Deprecated. Use Multimap.asMap() to get a (String name) ->
(Collection values) mapping and convert to an array only if you
absolutely have to. Or, use the multimap directly. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParamMap()
Method Detail |
---|
@Deprecated public java.lang.String[] get(java.lang.String name)
Multimap.get(name)
and convert to an array only if
you absolutely have to.
public boolean containsKey(java.lang.String name)
@Deprecated public void append(java.lang.String name, java.lang.String value)
Multimap.put(name, value)
@Deprecated public void put(java.lang.String name, java.lang.String[] values)
Multimap.putAll(name, collection)
, first converting
an array to a list with Arrays.asList(values)
if the collection
is not already available.
@Deprecated public java.util.Map<java.lang.String,java.lang.String[]> toMap()
Multimap.asMap()
to get a (String name) ->
(Collection values) mapping and convert to an array only if you
absolutely have to. Or, use the multimap directly.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |