public class SimpleActionParametersMap extends com.google.common.collect.ForwardingMap<String,Object> implements ActionParametersMap
Constructor and Description |
---|
SimpleActionParametersMap(org.apache.struts2.dispatcher.HttpParameters parameters) |
SimpleActionParametersMap(Map<String,?> parameters)
Deprecated.
since 6.0 use
SimpleActionParametersMap(HttpParameters) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected Map<String,Object> |
delegate() |
boolean |
getBoolean(String key)
Returns a boolean value from the map of parameters.
|
double |
getDouble(String key,
double defaultValue)
Retrieve Double value from the map of parameters.
|
Map<String,File> |
getFiles()
Returns map of Files uploaded to this form.
|
int |
getInt(String key,
int defaultValue)
Retrieve Integer value from the map of parameters.
|
long |
getLong(String key,
long defaultValue)
Retrieve Long value from the map of parameters.
|
Map<String,Object> |
getParameters()
Returns internal map of parameters.
|
String |
getString(String key)
Returns a String value from the map of parameters.
|
String |
getString(String key,
String defaultString)
Returns a String value from the map of parmeters.
|
String[] |
getStringArray(String key)
Returns a String[] value from the map of parameters.
|
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> map) |
Object |
remove(Object object) |
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
public SimpleActionParametersMap(org.apache.struts2.dispatcher.HttpParameters parameters)
@Deprecated public SimpleActionParametersMap(Map<String,?> parameters)
SimpleActionParametersMap(HttpParameters)
@NotNull public String getString(@Nullable String key, @NotNull String defaultString)
ActionParametersMap
getString
in interface ActionParametersMap
key
- Key of value to be searched in the mapdefaultString
- the default string to return if the property does not exist in the map@Nullable public String getString(@Nullable String key)
ActionParametersMap
getString
in interface ActionParametersMap
key
- Key of value to be searched in the map@Nullable public String[] getStringArray(@Nullable String key)
ActionParametersMap
getStringArray
in interface ActionParametersMap
key
- Key of value to be searched in the mappublic double getDouble(@Nullable String key, double defaultValue)
ActionParametersMap
getDouble
in interface ActionParametersMap
key
- Key of value to be searched in the mapdefaultValue
- Default value to be returned if key not found or not convertible to Doublepublic int getInt(@Nullable String key, int defaultValue)
ActionParametersMap
getInt
in interface ActionParametersMap
key
- Key of value to be searched in the mapdefaultValue
- Default value to be returned if key not found or not convertible to Integerpublic long getLong(@Nullable String key, long defaultValue)
ActionParametersMap
getLong
in interface ActionParametersMap
key
- Key of value to be searched in the mapdefaultValue
- Default value to be returned if key not found or not convertible to Longpublic boolean getBoolean(@Nullable String key)
ActionParametersMap
getBoolean
in interface ActionParametersMap
key
- Key of value to be searched in the map@NotNull public Map<String,File> getFiles()
ActionParametersMap
getFiles
in interface ActionParametersMap
public Map<String,Object> getParameters()
ActionParametersMap
getParameters
in interface ActionParametersMap
public void clear()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.