@OpenApi
public final class CookieSet
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
add(Cookie cookie)
Add a new cookie to the set.
|
Cookie |
getCookie(java.lang.Class clazz)
Get a cookie.
|
void |
remove(Cookie cookie)
Remove a cookie from the set.
|
@OpenApi public void add(Cookie cookie)
Cookies inserted earlier are given preference during lookup, in case a supplied representation class matches more than one cookie in the set.
cookie
- cookie to add@OpenApi public void remove(Cookie cookie)
cookie
- the cookie to remove@CheckForNull @OpenApi public Cookie getCookie(java.lang.Class clazz)
clazz
- the representation classnull
if there is none