Class Cookies
java.lang.Object
is.galia.http.Cookies
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidclear()booleanstatic CookiesfromHeaderValue(String headerValue) getAll()getFirstValue(String name) getFirstValue(String name, String defaultValue) inthashCode()iterator()voidvoidReplaces all cookies with the given name with a single cookie.intsize()stream()toMap()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Cookies
public Cookies() -
Cookies
Copy constructor.
-
-
Method Details
-
fromHeaderValue
- Parameters:
headerValue- HTTP header value.- Returns:
- New instance.
- Throws:
IllegalArgumentException- if the given header value cannot be parsed.
-
add
-
add
-
addAll
-
clear
public void clear() -
equals
-
getAll
-
getAll
-
getFirstValue
-
getFirstValue
-
hashCode
-
iterator
-
removeAll
-
set
-
size
public int size() -
stream
-
toMap
-