Package org.simpleframework.http.parse
Class AddressParser.ParameterMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,T>
-
- org.simpleframework.common.KeyMap<java.lang.String>
-
- org.simpleframework.http.parse.AddressParser.ParameterMap
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<java.lang.String>
,java.util.Map<java.lang.String,java.lang.String>
- Enclosing class:
- AddressParser
private class AddressParser.ParameterMap extends KeyMap<java.lang.String>
TheParameterMap
is uses to store the parameters that are to be encoded in to the address. This will append all of the parameters to the end of the path. These can later be extracted by parsing the address.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ParameterMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
encode()
This will return the parameters encoded in such a way that it can be appended to the end of the path.java.lang.String
toString()
This will return the parameters encoded in such a way that it can be appended to the end of the path.-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
encode
private java.lang.String encode()
This will return the parameters encoded in such a way that it can be appended to the end of the path. These parameters can be added to the address such that they do not form a query parameter. Values such as session identifiers are often added as the path parameters to the address.- Returns:
- this returns the representation of the parameters
-
toString
public java.lang.String toString()
This will return the parameters encoded in such a way that it can be appended to the end of the path. These parameters can be added to the address such that they do not form a query parameter. Values such as session identifiers are often added as the path parameters to the address.- Overrides:
toString
in classjava.util.AbstractMap<java.lang.String,java.lang.String>
- Returns:
- this returns the representation of the parameters
-
-