FileDocCategorySizeDatePackage
BasicClientCookie2.javaAPI DocAndroid 1.5 API3121Wed May 06 22:41:10 BST 2009org.apache.http.impl.cookie

BasicClientCookie2

public class BasicClientCookie2 extends BasicClientCookie implements SetCookie2
HTTP "magic-cookie" represents a piece of state information that the HTTP agent and the target server can exchange to maintain a session as specified by RFC2965.
author
Oleg Kalnichevski

Fields Summary
private String
commentURL
private int[]
ports
private boolean
discard
Constructors Summary
public BasicClientCookie2(String name, String value)
Default Constructor taking a name and a value. The value may be null.

param
name The name.
param
value The value.

        super(name, value);
    
Methods Summary
public java.lang.Objectclone()

        BasicClientCookie2 clone = (BasicClientCookie2) super.clone();
        clone.ports = this.ports.clone();
        return clone;
    
public java.lang.StringgetCommentURL()

        return this.commentURL;
    
public int[]getPorts()

        return this.ports;
    
public booleanisExpired(java.util.Date date)

        return this.discard || super.isExpired(date);
    
public booleanisPersistent()

        return !this.discard && super.isPersistent();
    
public voidsetCommentURL(java.lang.String commentURL)

        this.commentURL = commentURL;
    
public voidsetDiscard(boolean discard)

        this.discard = discard;
    
public voidsetPorts(int[] ports)

        this.ports = ports;