Top Description Methods
org.apache.http.cookie

public Interface SetCookie2

extends SetCookie
Known Direct Implementers
org.apache.http.impl.cookie.BasicClientCookie2
Imports
org.apache.http.annotation.Obsolete

This interface represents a Set-Cookie2 response header sent by the origin server to the HTTP agent in order to maintain a conversational state.

Please do not use methods marked as @Obsolete. They have been rendered obsolete by RFC 6265

Since
4.0

Method Summary

Modifier and TypeMethod and Description
public void
setCommentURL(String commentURL)

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.

public void
setDiscard(boolean discard)

Set the Discard attribute.

public void
setPorts(int[] ports)

Sets the Port attribute.

Inherited from org.apache.http.cookie.SetCookie:
setCommentsetDomainsetExpiryDatesetPathsetSecuresetValuesetVersion

Method Detail

setCommentURLback to summary
public void setCommentURL(String commentURL)

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.

Annotations
@Obsolete
setDiscardback to summary
public void setDiscard(boolean discard)

Set the Discard attribute.

Note

Discard attribute overrides Max-age.

Annotations
@Obsolete
See Also
isPersistent()
setPortsback to summary
public void setPorts(int[] ports)

Sets the Port attribute. It restricts the ports to which a cookie may be returned in a Cookie request header.

Annotations
@Obsolete