wjhk.jupload2.upload.helper
Class CookieJar.Cookie

java.lang.Object
  extended by wjhk.jupload2.upload.helper.CookieJar.Cookie
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
CookieJar

private static class CookieJar.Cookie
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
(package private)  java.lang.String domain
           
(package private)  long max_age
           
(package private)  java.lang.String name
           
(package private)  java.lang.String path
           
(package private)  int secure
           
(package private)  java.lang.String value
           
(package private)  int version
           
 
Constructor Summary
CookieJar.Cookie()
           
 
Method Summary
 CookieJar.Cookie clone()
           
 java.lang.String getHeader(java.lang.String path, int secure)
          Returns a single client cookie header element
 java.lang.String getKey()
          Retrieves the hash value of this cookie.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domain

java.lang.String domain

name

java.lang.String name

value

java.lang.String value

path

java.lang.String path

max_age

long max_age

version

int version

secure

int secure
Constructor Detail

CookieJar.Cookie

CookieJar.Cookie()
Method Detail

clone

public CookieJar.Cookie clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()

getKey

public java.lang.String getKey()
Retrieves the hash value of this cookie. Cookies are hashed by name and path.

Returns:
The hash value of this cookie.

getHeader

public java.lang.String getHeader(java.lang.String path,
                                  int secure)
Returns a single client cookie header element

Parameters:
path - The path of the corresponding request URI
secure - 1, if the current connection is secure (SSL), 0 otherwise
Returns:
The part of the cookie header or an empty string