com.ning.http.client
Class Cookie

java.lang.Object
  extended by com.ning.http.client.Cookie
All Implemented Interfaces:
Comparable<Cookie>

public class Cookie
extends Object
implements Comparable<Cookie>


Constructor Summary
Cookie(String domain, String name, String value, String path, int maxAge, boolean secure)
          Deprecated. 
Cookie(String domain, String name, String value, String path, int maxAge, boolean secure, int version)
          Deprecated. 
Cookie(String domain, String name, String value, String path, int maxAge, boolean secure, int version, boolean httpOnly, boolean discard, String comment, String commentUrl, Iterable<Integer> ports)
           
 
Method Summary
 int compareTo(Cookie c)
           
 String getComment()
           
 String getCommentUrl()
           
 String getDomain()
           
 int getMaxAge()
           
 String getName()
           
 String getPath()
           
 Set<Integer> getPorts()
           
 String getValue()
           
 int getVersion()
           
 boolean isDiscard()
           
 boolean isHttpOnly()
           
 boolean isSecure()
           
 void setPorts(int... ports)
          Deprecated. 
 void setPorts(Iterable<Integer> ports)
          Deprecated. 
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cookie

@Deprecated
public Cookie(String domain,
                         String name,
                         String value,
                         String path,
                         int maxAge,
                         boolean secure)
Deprecated. 


Cookie

@Deprecated
public Cookie(String domain,
                         String name,
                         String value,
                         String path,
                         int maxAge,
                         boolean secure,
                         int version)
Deprecated. 


Cookie

public Cookie(String domain,
              String name,
              String value,
              String path,
              int maxAge,
              boolean secure,
              int version,
              boolean httpOnly,
              boolean discard,
              String comment,
              String commentUrl,
              Iterable<Integer> ports)
Method Detail

getDomain

public String getDomain()

getName

public String getName()

getValue

public String getValue()

getPath

public String getPath()

getMaxAge

public int getMaxAge()

isSecure

public boolean isSecure()

getVersion

public int getVersion()

getComment

public String getComment()

getCommentUrl

public String getCommentUrl()

isHttpOnly

public boolean isHttpOnly()

isDiscard

public boolean isDiscard()

getPorts

public Set<Integer> getPorts()

setPorts

@Deprecated
public void setPorts(int... ports)
Deprecated. 


setPorts

@Deprecated
public void setPorts(Iterable<Integer> ports)
Deprecated. 


toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Cookie c)
Specified by:
compareTo in interface Comparable<Cookie>


Copyright © 2013. All Rights Reserved.