org.apache.cactus
class Cookie

java.lang.Object
  |
  +--org.apache.cactus.Cookie
All Implemented Interfaces:
Serializable
Known Advisors:
LogAspect

public class Cookie
extends java.lang.Object
implements Serializable

Client cookie. Used for manipulating client cookies either in beginXXX() (to send cookies) or in endXXX() methods (to assert returned cookies).

Version:
$Id: Cookie.java,v 1.3 2002/07/23 22:35:36 vmassol Exp $
Author:
Vincent Massol

Constructor Summary
Cookie(String theDomain, String theName, String theValue)
           
 
Method Summary
 boolean equals(Object theObject)
           Affected by: LogAspect
 String getComment()
           
static String getCookieDomain(WebRequest theRequest, String theRealHost)
           Affected by: LogAspect
static String getCookiePath(WebRequest theRequest, String theRealPath)
           Affected by: LogAspect
static int getCookiePort(WebRequest theRequest, int theRealPort)
           Affected by: LogAspect
 String getDomain()
           
 Date getExpiryDate()
           
 String getName()
           
 String getPath()
           
 String getValue()
           
 int hashCode()
           
 boolean isExpired()
           
 boolean isSecure()
           
 boolean isToBeDiscarded()
           
 void setComment(String theComment)
           Affected by: LogAspect
 void setDomain(String theDomain)
           Affected by: LogAspect
 void setExpiryDate(Date theExpiryDate)
           Affected by: LogAspect
 void setName(String theName)
           Affected by: LogAspect
 void setPath(String thePath)
           Affected by: LogAspect
 void setSecure(boolean isSecure)
           Affected by: LogAspect
 void setValue(String theValue)
           Affected by: LogAspect
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cookie

public Cookie(String theDomain,
              String theName,
              String theValue)
Method Detail

equals

public boolean equals(Object theObject)
Affected by:
around() in LogAspect.

getComment

public String getComment()

getCookieDomain

public static String getCookieDomain(WebRequest theRequest,
                                     String theRealHost)
Affected by:
around() in LogAspect.

getCookiePath

public static String getCookiePath(WebRequest theRequest,
                                   String theRealPath)
Affected by:
around() in LogAspect.

getCookiePort

public static int getCookiePort(WebRequest theRequest,
                                int theRealPort)
Affected by:
around() in LogAspect.

getDomain

public String getDomain()

getExpiryDate

public Date getExpiryDate()

getName

public String getName()

getPath

public String getPath()

getValue

public String getValue()

hashCode

public int hashCode()

isExpired

public boolean isExpired()

isSecure

public boolean isSecure()

isToBeDiscarded

public boolean isToBeDiscarded()

setComment

public void setComment(String theComment)
Affected by:
around() in LogAspect.

setDomain

public void setDomain(String theDomain)
Affected by:
around() in LogAspect.

setExpiryDate

public void setExpiryDate(Date theExpiryDate)
Affected by:
around() in LogAspect.

setName

public void setName(String theName)
Affected by:
around() in LogAspect.

setPath

public void setPath(String thePath)
Affected by:
around() in LogAspect.

setSecure

public void setSecure(boolean isSecure)
Affected by:
around() in LogAspect.

setValue

public void setValue(String theValue)
Affected by:
around() in LogAspect.

toString

public String toString()


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.