SetCookie2.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private boolean | |
| private int[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | BasicClientCookie2(final String
The name. name, final String The value. value)Default Constructor taking a name and a value. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides org. |
| public String | getCommentURL()
Overrides org. Implements org. |
| public int[] | getPorts()
Overrides org. Implements org. |
| public boolean | isExpired(final Date
Current time date)Overrides org. Implements org. |
| public boolean | isPersistent()
Overrides org. Implements org. false if the cookie should be discarded at the end
of the "session"; true otherwise.
|
| public void | setCommentURL(final String commentURL)
Implements org. |
| public void | setDiscard(final boolean discard)
Implements org. |
| public void | setPorts(final int[] ports)
Implements org. |
| commentURL | back to summary |
|---|---|
| private String commentURL | |
| discard | back to summary |
|---|---|
| private boolean discard | |
| ports | back to summary |
|---|---|
| private int[] ports | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| BasicClientCookie2 | back to summary |
|---|---|
| public BasicClientCookie2(final String name, final String value) Default Constructor taking a name and a value. The value may be null. | |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides org. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getCommentURL | back to summary |
|---|---|
| public String getCommentURL() Overrides org. Implements org. Doc from org. If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described by the information at this URL.
| |
| getPorts | back to summary |
|---|---|
| public int[] getPorts() Overrides org. Implements org. Doc from org. Get the Port attribute. It restricts the ports to which a cookie may be returned in a Cookie request header.
| |
| isExpired | back to summary |
|---|---|
| public boolean isExpired(final Date date) Overrides org. Implements org. Doc from org. Returns true if this cookie has expired. | |
| isPersistent | back to summary |
|---|---|
| public boolean isPersistent() Overrides org. Implements org. Doc from org. Returns
| |
| setCommentURL | back to summary |
|---|---|
| public void setCommentURL(final String commentURL) Implements org. Doc from org. If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described by the information at this URL.
| |
| setDiscard | back to summary |
|---|---|
| public void setDiscard(final boolean discard) Implements org. Doc from org. Set the Discard attribute. Note
| |
| setPorts | back to summary |
|---|---|
| public void setPorts(final int[] ports) Implements org. Doc from org. Sets the Port attribute. It restricts the ports to which a cookie may be returned in a Cookie request header.
| |