public class UrlParameterBundle
extends java.lang.Object
Strings to store and transmit data in.| Constructor and Description |
|---|
UrlParameterBundle()
Creates an empty
UrlParameterBundle object. |
UrlParameterBundle(java.lang.String url)
Creates a new
UrlParameterBundle object and populates it with the values from the given URL String |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateUrlString()
Creates an URL encoded
String containing all parameters of this UrlParameterBundle object. |
java.lang.String |
get(java.lang.String key)
Returns the value of the parameter with the given key.
|
boolean |
getBoolean(java.lang.String key)
Returns the value of the parameter with the given key.
|
double |
getDouble(java.lang.String key)
Returns the value of the parameter with the given key.
|
float |
getFloat(java.lang.String key)
Returns the value of the parameter with the given key.
|
int |
getInteger(java.lang.String key)
Returns the value of the parameter with the given key.
|
long |
getLong(java.lang.String key)
Returns the value of the parameter with the given key.
|
java.util.Map<java.lang.String,java.lang.String> |
getMap()
Returns a map containing all parameters of this
UrlParameterBundle. |
UrlParameterBundle |
put(java.lang.String key,
java.lang.Object value)
Adds a parameter.
|
public UrlParameterBundle()
UrlParameterBundle object.public UrlParameterBundle(java.lang.String url)
UrlParameterBundle object and populates it with the values from the given URL Stringurl - the URL to get the values from.public java.util.Map<java.lang.String,java.lang.String> getMap()
UrlParameterBundle.UrlParameterBundlepublic UrlParameterBundle put(java.lang.String key, java.lang.Object value)
key - the key identifying the valuevalue - the value. Keep in mind that all values are stored as String.UrlParameterBundlepublic java.lang.String get(java.lang.String key)
key - the key of the requested parameterString value of the valuepublic double getDouble(java.lang.String key)
key - the key of the requested parameterDouble value of the valuepublic int getInteger(java.lang.String key)
key - the key of the requested parameterInteger value of the valuepublic long getLong(java.lang.String key)
key - the key of the requested parameterLong value of the valuepublic float getFloat(java.lang.String key)
key - the key of the requested parameterFloat value of the valuepublic boolean getBoolean(java.lang.String key)
key - the key of the requested parameterBoolean value of the valuepublic java.lang.String generateUrlString()
String containing all parameters of this UrlParameterBundle object.UrlParameterBundle object