Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2019-05-17 10:33:58 +02:00
parent 26169491c9
commit 065581edd9
1 changed files with 1 additions and 4 deletions

View File

@ -23,9 +23,9 @@ import java.util.concurrent.TimeUnit;
import org.eclipse.jetty.util.QuotedStringTokenizer;
// TODO consider replacing this with java.net.HttpCookie
public class HttpCookie
{
// TODO consider replacing this with java.net.HttpCookie
private static final String __COOKIE_DELIM="\",;\\ \t";
private static final String __01Jan1970_COOKIE = DateGenerator.formatCookieDate(0).trim();
@ -74,8 +74,6 @@ public class HttpCookie
_expiration = maxAge < 0 ? -1 : System.nanoTime() + TimeUnit.SECONDS.toNanos(maxAge);
}
enum State { START, NAME, VALUE, QUOTED}
public HttpCookie(String setCookie)
{
List<java.net.HttpCookie> cookies = java.net.HttpCookie.parse(setCookie);
@ -201,7 +199,6 @@ public class HttpCookie
buf.append(s);
}
/* ------------------------------------------------------------ */
/** Does a cookie value need to be quoted?
* @param s value string
* @return true if quoted;