public class HttpCookie extends Object
Constructor and Description |
---|
HttpCookie(String name,
String value) |
HttpCookie(String name,
String value,
long maxAge) |
HttpCookie(String name,
String value,
String domain,
String path) |
HttpCookie(String name,
String value,
String domain,
String path,
long maxAge,
boolean httpOnly,
boolean secure) |
HttpCookie(String name,
String value,
String domain,
String path,
long maxAge,
boolean httpOnly,
boolean secure,
String comment,
int version) |
public HttpCookie(String name, String value, String domain, String path, long maxAge, boolean httpOnly, boolean secure)
public String getName()
public String getValue()
public String getComment()
public String getDomain()
public long getMaxAge()
public String getPath()
public boolean isSecure()
public int getVersion()
public boolean isHttpOnly()
public boolean isExpired(long timeNanos)
timeNanos
- the time to check for cookie expiration, in nanosecondspublic String asString()
Copyright © 1995-2015 Webtide. All Rights Reserved.