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, valuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, valuespublic 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)
ActionParametersMapgetString in interface ActionParametersMapkey - 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)
ActionParametersMapgetString in interface ActionParametersMapkey - Key of value to be searched in the map@Nullable public @Nullable String[] getStringArray(@Nullable @Nullable String key)
ActionParametersMapgetStringArray in interface ActionParametersMapkey - Key of value to be searched in the mappublic double getDouble(@Nullable
@Nullable String key,
double defaultValue)
ActionParametersMapgetDouble in interface ActionParametersMapkey - 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)
ActionParametersMapgetInt in interface ActionParametersMapkey - 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)
ActionParametersMapgetLong in interface ActionParametersMapkey - 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)
ActionParametersMapgetBoolean in interface ActionParametersMapkey - Key of value to be searched in the map@NotNull public @NotNull Map<String,File> getFiles()
ActionParametersMapgetFiles in interface ActionParametersMappublic Map<String,Object> getParameters()
ActionParametersMapgetParameters in interface ActionParametersMappublic void clear()
public void detachFromActionContext()
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.