public class Cookie2 extends Cookie
Title: Framework Support Library
Description: This class represents an http cookie as specified in the HTTP State Management Mechanism spec (also known as a version 1 cookie).
Copyright: Copyright (c) 2012
Company: StreamScape Technologies
Constructor and Description |
---|
Cookie2(java.lang.String name,
java.lang.String value,
java.lang.String domain,
int[] port_list,
java.lang.String path,
java.util.Date expires,
boolean discard,
boolean secure,
java.lang.String comment,
URI comment_url)
Create a cookie.
|
Modifier and Type | Method and Description |
---|---|
boolean |
discard() |
java.lang.String |
getComment() |
URI |
getCommentURL() |
int[] |
getPorts() |
int |
getVersion() |
java.lang.String |
toString()
Create a string containing all the cookie fields.
|
public Cookie2(java.lang.String name, java.lang.String value, java.lang.String domain, int[] port_list, java.lang.String path, java.util.Date expires, boolean discard, boolean secure, java.lang.String comment, URI comment_url)
name
- the cookie namevalue
- the cookie valuedomain
- the host this cookie will be sent toport_list
- an array of allowed server ports for this cookie,
or null if the the cookie may be sent to any portpath
- the path prefix for which this cookie will be sentexpires
- the Date this cookie expires, or null if neverdiscard
- if true then the cookie will be discarded at the
end of the session regardless of expirysecure
- if true this cookie will only be over secure connectionscomment
- the comment associated with this cookie, or null if nonecomment_url
- the comment URL associated with this cookie, or null
if nonejava.lang.NullPointerException
- if name, value,
domain, or path
is nullpublic int getVersion()
public java.lang.String getComment()
public URI getCommentURL()
public int[] getPorts()
public boolean discard()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.