HDIV API 2.0.4

org.hdiv.filter
Class SavedCookie

java.lang.Object
  extended by org.hdiv.filter.SavedCookie
All Implemented Interfaces:
java.io.Serializable

public class SavedCookie
extends java.lang.Object
implements java.io.Serializable

Stores off the values of a cookie in a serializable holder.

Since:
HDIV 1.1.1
Author:
Gorka Vicente
See Also:
Serialized Form

Constructor Summary
SavedCookie(javax.servlet.http.Cookie cookie)
          Constructs a new SavedCookie from cookie object.
SavedCookie(java.lang.String name, java.lang.String value)
          Constructs a new SavedCookie.
SavedCookie(java.lang.String name, java.lang.String value, java.lang.String comment, java.lang.String domain, int maxAge, java.lang.String path, boolean secure, int version)
          Constructs a new SavedCookie.
 
Method Summary
 boolean equals(javax.servlet.http.Cookie c, boolean cookiesConfidentialityActivated)
          Compares this Cookie to the specified object.
 java.lang.String getComment()
           
 java.lang.String getDomain()
           
 int getMaxAge()
           
 java.lang.String getName()
           
 java.lang.String getPath()
           
 java.lang.String getValue()
           
 int getVersion()
           
 boolean isSecure()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SavedCookie

public SavedCookie(java.lang.String name,
                   java.lang.String value,
                   java.lang.String comment,
                   java.lang.String domain,
                   int maxAge,
                   java.lang.String path,
                   boolean secure,
                   int version)
Constructs a new SavedCookie.

Parameters:
name -
value -
comment -
domain -
maxAge -
path -
secure -
version -

SavedCookie

public SavedCookie(javax.servlet.http.Cookie cookie)
Constructs a new SavedCookie from cookie object.

Parameters:
cookie - original cookie

SavedCookie

public SavedCookie(java.lang.String name,
                   java.lang.String value)
Constructs a new SavedCookie.

Parameters:
name -
value -
Method Detail

equals

public boolean equals(javax.servlet.http.Cookie c,
                      boolean cookiesConfidentialityActivated)
Compares this Cookie to the specified object. The result is true if and only if the argument is not null and is a Cookie object that represents the same sequence of values as this object.

Parameters:
c - the object to compare this Cookie against.
cookiesConfidentialityActivated - cookies' confidentiality indicator
Returns:
True if the Cookie are equal. False otherwise.

getComment

public java.lang.String getComment()
Returns:
Returns the comment.

getDomain

public java.lang.String getDomain()
Returns:
Returns the domain.

getMaxAge

public int getMaxAge()
Returns:
Returns the maxAge.

getName

public java.lang.String getName()
Returns:
Returns the name.

getValue

public java.lang.String getValue()
Returns:
Returns the value.

getPath

public java.lang.String getPath()
Returns:
Returns the path.

isSecure

public boolean isSecure()
Returns:
Returns the secure.

getVersion

public int getVersion()
Returns:
Returns the version.

HDIV 2.0.4

Copyright © 2008 hdiv.org. All Rights Reserved.