Package org.forgerock.http.protocol
Class RequestCookies
- java.lang.Object
-
- java.util.AbstractMap<String,List<Cookie>>
-
- org.forgerock.http.protocol.RequestCookies
-
- All Implemented Interfaces:
Map<String,List<Cookie>>
,UnmodifiableCollection
public class RequestCookies extends AbstractMap<String,List<Cookie>> implements Map<String,List<Cookie>>, UnmodifiableCollection
Exposes incoming request cookies.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description RequestCookies(Request request)
Constructs a new request cookies object that reads cookies from the specified request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<String,List<Cookie>>>
entrySet()
List<Cookie>
get(Object key)
boolean
isEmpty()
Set<String>
keySet()
int
size()
String
toString()
Collection<List<Cookie>>
values()
-
Methods inherited from class java.util.AbstractMap
clear, clone, equals, hashCode, put, putAll, remove
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
RequestCookies
public RequestCookies(Request request)
Constructs a new request cookies object that reads cookies from the specified request.- Parameters:
request
- the request to read cookies from.
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,List<Cookie>>
- Overrides:
containsKey
in classAbstractMap<String,List<Cookie>>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,List<Cookie>>
- Overrides:
containsValue
in classAbstractMap<String,List<Cookie>>
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
-