public class RequestHeadersMap extends Object implements ContextMap
| Constructor and Description |
|---|
RequestHeadersMap(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.
|
ContextMap |
withBoolean(String key,
Boolean trueOrFalse)
Add (or overwrite) a key,Boolean pair to the Map.
|
ContextMap |
withFloat(String key,
Float aFloat)
Add (or overwrite) a key,Float pair to the Map.
|
ContextMap |
withInteger(String key,
Integer anInteger)
Add (or overwrite) a key,Integer pair to the Map.
|
ContextMap |
withLong(String key,
Long aLong)
Add (or overwrite) a key,Long pair to the Map.
|
ContextMap |
withObject(String key,
Object value)
Add (or overwrite) a key,Object pair to the Map.
|
ContextMap |
withString(String key,
String value)
Add (or overwrite) a key,String pair to the Map.
|
public RequestHeadersMap(javax.servlet.http.HttpServletRequest request)
public ContextMap 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 ContextMap withLong(String key, Long aLong)
ContextMapwithLong in interface ContextMappublic Float getFloat(String key, Float... optional)
ContextMapgetFloat in interface ContextMappublic ContextMap withFloat(String key, Float aFloat)
ContextMapwithFloat in interface ContextMappublic Integer getInteger(String key, Integer... optional)
ContextMapgetInteger in interface ContextMappublic ContextMap withInteger(String key, Integer anInteger)
ContextMapwithInteger in interface ContextMappublic Object getObject(String key, Object... optional)
ContextMapgetObject in interface ContextMappublic ContextMap withObject(String key, Object value)
ContextMapwithObject in interface ContextMappublic String getString(String key, String... optional)
ContextMapgetString in interface ContextMappublic ContextMap withString(String key, String value)
ContextMapwithString in interface ContextMappublic Object clear(String key)
ContextMapclear in interface ContextMappublic Map<Object,Object> toMap()
ContextMaptoMap in interface ContextMapCopyright © 2010–2018. All rights reserved.