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() |
void |
detachFromActionContext()
After you call this, changes will no longer propagate to the ActionContext.
|
boolean |
getBoolean(@Nullable String key)
Returns a boolean value from the map of parameters.
|
double |
getDouble(@Nullable String key,
double defaultValue)
Retrieve Double value from the map of parameters.
|
@NotNull Map<String,File> |
getFiles()
Returns map of Files uploaded to this form.
|
int |
getInt(@Nullable String key,
int defaultValue)
Retrieve Integer value from the map of parameters.
|
long |
getLong(@Nullable String key,
long defaultValue)
Retrieve Long value from the map of parameters.
|
Map<String,Object> |
getParameters()
Returns internal map of parameters.
|
@Nullable String |
getString(@Nullable String key)
Returns a String value from the map of parameters.
|
@NotNull String |
getString(@Nullable String key,
@NotNull String defaultString)
Returns a String value from the map of parmeters.
|
@Nullable String[] |
getStringArray(@Nullable String key)
Returns a String[] value from the map of parameters.
|
Object |
put(@NotNull String key,
@NotNull 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 @NotNull String getString(@Nullable @Nullable String key, @NotNull @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 @Nullable String getString(@Nullable @Nullable String key)
ActionParametersMap
getString
in interface ActionParametersMap
key
- Key of value to be searched in the map@Nullable public @Nullable String[] getStringArray(@Nullable @Nullable String key)
ActionParametersMap
getStringArray
in interface ActionParametersMap
key
- Key of value to be searched in the mappublic double getDouble(@Nullable @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 @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 @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 @Nullable String key)
ActionParametersMap
getBoolean
in interface ActionParametersMap
key
- Key of value to be searched in the map@NotNull public @NotNull Map<String,File> getFiles()
ActionParametersMap
getFiles
in interface ActionParametersMap
public Map<String,Object> getParameters()
ActionParametersMap
getParameters
in interface ActionParametersMap
public void clear()
public void detachFromActionContext()
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.