public class Cookie extends Object
Modifier and Type | Method and Description |
---|---|
static Cookie |
fromString(String s)
Parse cookie from its' string representation.
|
static int |
maxLength() |
static Cookie |
newCookie() |
static boolean |
sameValue(Cookie c1,
Cookie c2)
Check if two cookies have the same value.
|
String |
toString()
Write itself to the provided appendable entity.
|
static Cookie |
unknownCookie()
Cookie, that does not have a well-defined value.
|
public static Cookie unknownCookie()
public static Cookie newCookie()
public static Cookie fromString(String s) throws Exception
Exception
- if the cookie can't be parsedpublic static boolean sameValue(Cookie c1, Cookie c2)
public static int maxLength()
Copyright © 2016–2021. All rights reserved.