public class SessionAttributesMap extends Object implements ContextMap
| Constructor and Description |
|---|
SessionAttributesMap(javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clear(String key)
Remove all entries from the Map.
|
Boolean |
getBoolean(String key,
Boolean... optional)
Return the Boolean value stored a the key, or the value of optional if
absent.
|
Float |
getFloat(String key,
Float... optional)
Return the Float value stored a the key, or the value of optional if
absent.
|
Integer |
getInteger(String key,
Integer... optional)
Return the Integer value stored a the key, or the value of optional if
absent.
|
Long |
getLong(String key,
Long... optional)
Return the Float value stored a the key, or the value of optional if
absent.
|
Object |
getObject(String key,
Object... optional)
Return the Object value stored a the key, or the value of optional if
absent.
|
String |
getString(String key,
String... optional)
Return the String value stored a the key, or the value of optional if
absent.
|
Map<Object,Object> |
toMap()
Return a new Map containing all the context key,value pairs.
|
SessionAttributesMap |
withBoolean(String key,
Boolean trueOrFalse)
Add (or overwrite) a key,Boolean pair to the Map.
|
SessionAttributesMap |
withFloat(String key,
Float aFloat)
Add (or overwrite) a key,Float pair to the Map.
|
SessionAttributesMap |
withInteger(String key,
Integer anInteger)
Add (or overwrite) a key,Integer pair to the Map.
|
SessionAttributesMap |
withLong(String key,
Long aLong)
Add (or overwrite) a key,Long pair to the Map.
|
SessionAttributesMap |
withObject(String key,
Object value)
Add (or overwrite) a key,Object pair to the Map.
|
SessionAttributesMap |
withString(String key,
String value)
Add (or overwrite) a key,String pair to the Map.
|
public SessionAttributesMap(javax.servlet.http.HttpServletRequest request)
public SessionAttributesMap withBoolean(String key, Boolean trueOrFalse)
ContextMapwithBoolean in interface ContextMappublic Boolean getBoolean(String key, Boolean... optional)
ContextMapgetBoolean in interface ContextMappublic Long getLong(String key, Long... optional)
ContextMapgetLong in interface ContextMappublic SessionAttributesMap withLong(String key, Long aLong)
ContextMapwithLong in interface ContextMappublic Float getFloat(String key, Float... optional)
ContextMapgetFloat in interface ContextMappublic SessionAttributesMap withFloat(String key, Float aFloat)
ContextMapwithFloat in interface ContextMappublic SessionAttributesMap withInteger(String key, Integer anInteger)
ContextMapwithInteger in interface ContextMappublic Integer getInteger(String key, Integer... optional)
ContextMapgetInteger in interface ContextMappublic Object getObject(String key, Object... optional)
ContextMapgetObject in interface ContextMappublic SessionAttributesMap withObject(String key, Object value)
ContextMapwithObject in interface ContextMappublic SessionAttributesMap withString(String key, String value)
ContextMapwithString in interface ContextMappublic String getString(String key, String... optional)
ContextMapgetString in interface ContextMappublic Object clear(String key)
ContextMapclear in interface ContextMappublic Map<Object,Object> toMap()
ContextMaptoMap in interface ContextMapCopyright © 2010–2018. All rights reserved.