Java Doc for Cookie.java in  » Testing » jakarta-cactus » org » apache » cactus » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jakarta cactus » org.apache.cactus 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.cactus.Cookie

All known Subclasses:   org.apache.cactus.HttpSessionCookie,
Cookie
public class Cookie implements Serializable(Code)
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 238991 2004-05-22 11:34:50Z vmassol $



Constructor Summary
public  Cookie(String theDomain, String theName, String theValue)
     Create a cookie.

Method Summary
public  booleanequals(Object theObject)
     Two cookies match if the name, path and domain match.
public  StringgetComment()
     Returns the comment describing the purpose of this cookie, or null if no such comment has been defined.
public static  StringgetCookieDomain(WebRequest theRequest, String theRealHost)
    
public static  StringgetCookiePath(WebRequest theRequest, String theRealPath)
    
public static  intgetCookiePort(WebRequest theRequest, int theRealPort)
    
public  StringgetDomain()
     Returns the domain of this cookie.
public  DategetExpiryDate()
     Return the expiry date.
public  StringgetName()
    
public  StringgetPath()
     Return the path this cookie is associated with.
public  StringgetValue()
    
public  inthashCode()
     Hash up name, value and domain into new hash.
public  booleanisExpired()
    
public  booleanisSecure()
    
public  booleanisToBeDiscarded()
    
public  voidsetComment(String theComment)
     If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described using this comment.
public  voidsetDomain(String theDomain)
     Sets the cookie domain.
public  voidsetExpiryDate(Date theExpiryDate)
     Set the cookie expires date.

Netscape's original proposal defined an Expires header that took a date value in a fixed-length variant format in place of Max-Age: Wdy, DD-Mon-YY HH:MM:SS GMT Note that the Expires date format contains embedded spaces, and that "old" cookies did not have quotes around values.

public  voidsetName(String theName)
    
public  voidsetPath(String thePath)
     Sets the cookie path.
public  voidsetSecure(boolean isSecure)
     Indicates to the user agent that the cookie should only be sent using a secure protocol (https).
public  voidsetValue(String theValue)
    
public  StringtoString()
    


Constructor Detail
Cookie
public Cookie(String theDomain, String theName, String theValue)(Code)
Create a cookie.
Parameters:
  theDomain - the cookie domain
Parameters:
  theName - the cookie name
Parameters:
  theValue - the cookie value




Method Detail
equals
public boolean equals(Object theObject)(Code)
Two cookies match if the name, path and domain match.
Parameters:
  theObject - the cookie object to match true of the object passed as paramater is equal to this coookieinstance



getComment
public String getComment()(Code)
Returns the comment describing the purpose of this cookie, or null if no such comment has been defined. the cookie comment



getCookieDomain
public static String getCookieDomain(WebRequest theRequest, String theRealHost)(Code)

See Also:   CookieUtil.getCookieDomain(WebRequestString)CookieUtil.getCookieDomain(WebRequestString)



getCookiePath
public static String getCookiePath(WebRequest theRequest, String theRealPath)(Code)

See Also:   CookieUtil.getCookiePath(WebRequestString)CookieUtil.getCookiePath(WebRequestString)



getCookiePort
public static int getCookiePort(WebRequest theRequest, int theRealPort)(Code)

See Also:   CookieUtil.getCookiePort(WebRequestint)CookieUtil.getCookiePort(WebRequestint)



getDomain
public String getDomain()(Code)
Returns the domain of this cookie. the cookie domain



getExpiryDate
public Date getExpiryDate()(Code)
Return the expiry date. the expiry date of this cookie, or null if none set.



getName
public String getName()(Code)
the cookie name



getPath
public String getPath()(Code)
Return the path this cookie is associated with. the cookie path



getValue
public String getValue()(Code)
the cookie value



hashCode
public int hashCode()(Code)
Hash up name, value and domain into new hash. the hashcode of this class



isExpired
public boolean isExpired()(Code)
true if this cookie has expired



isSecure
public boolean isSecure()(Code)
true if the cookie should only be sent over secure connections.



isToBeDiscarded
public boolean isToBeDiscarded()(Code)
true if the cookie should be discarded at the end of thesession; false otherwise



setComment
public void setComment(String theComment)(Code)
If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described using this comment.
Parameters:
  theComment - the cookie's text comment



setDomain
public void setDomain(String theDomain)(Code)
Sets the cookie domain. This cookie should be presented only to hosts satisfying this domain name pattern. Read RFC 2109 for specific details of the syntax. Briefly, a domain name name begins with a dot (".foo.com") and means that hosts in that DNS zone ("www.foo.com", but not "a.b.foo.com") should see the cookie. By default, cookies are only returned to the host which saved them.
Parameters:
  theDomain - the cookie domain



setExpiryDate
public void setExpiryDate(Date theExpiryDate)(Code)
Set the cookie expires date.

Netscape's original proposal defined an Expires header that took a date value in a fixed-length variant format in place of Max-Age: Wdy, DD-Mon-YY HH:MM:SS GMT Note that the Expires date format contains embedded spaces, and that "old" cookies did not have quotes around values. Clients that implement to this specification should be aware of "old" cookies and Expires.
Parameters:
  theExpiryDate - the expires date.




setName
public void setName(String theName)(Code)
Sets the cookie name
Parameters:
  theName - the cookie name



setPath
public void setPath(String thePath)(Code)
Sets the cookie path. This cookie should be presented only with requests beginning with this URL. Read RFC 2109 for a specification of the default behaviour. Basically, URLs in the same "directory" as the one which set the cookie, and in subdirectories, can all see the cookie unless a different path is set.
Parameters:
  thePath - the cookie path



setSecure
public void setSecure(boolean isSecure)(Code)
Indicates to the user agent that the cookie should only be sent using a secure protocol (https). This should only be set when the cookie's originating server used a secure protocol to set the cookie's value.
Parameters:
  isSecure - true if the cookie should be sent over secureconnections only



setValue
public void setValue(String theValue)(Code)
Sets the cookie value
Parameters:
  theValue - the cookie value



toString
public String toString()(Code)
a string representation of the cookie



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.