Package kong.unirest.core
Class Cookies
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Cookie>
-
- kong.unirest.core.Cookies
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<Cookie>
,java.util.Collection<Cookie>
,java.util.List<Cookie>
,java.util.RandomAccess
public class Cookies extends java.util.ArrayList<Cookie>
Represents a collection of cookies with some helper methods for parsing and getting cookie- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cookie
getNamed(java.lang.String name)
Get cookie by name-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
getNamed
public Cookie getNamed(java.lang.String name)
Get cookie by name- Parameters:
name
- the name of the cookie you want- Returns:
- the cookie with that name
-
-