public final class Cookie extends Object
This class doesn't support additional attributes on cookies, like Chromium's Priority=HIGH extension.
| Modifier and Type | Class and Description |
|---|---|
static class |
Cookie.Builder
Builds a cookie.
|
| Modifier and Type | Method and Description |
|---|---|
String |
domain() |
boolean |
equals(Object other) |
long |
expiresAt() |
int |
hashCode() |
boolean |
hostOnly() |
boolean |
httpOnly() |
boolean |
matches(Url url) |
String |
name() |
static Cookie |
parse(Url url,
String setCookie) |
static List<Cookie> |
parseAll(Url url,
Headers headers) |
String |
path() |
boolean |
persistent() |
boolean |
secure() |
String |
toString() |
String |
value() |
public String name()
public String value()
public boolean persistent()
public long expiresAt()
public boolean hostOnly()
public String domain()
public String path()
public boolean httpOnly()
public boolean secure()
public boolean matches(Url url)
Copyright © 2019. All rights reserved.