Java Doc for Cookie2.java in  » Net » SkunkDAV » HTTPClient » 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 » Net » SkunkDAV » HTTPClient 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   HTTPClient.Cookie
      HTTPClient.Cookie2

Cookie2
public class Cookie2 extends Cookie (Code)
This class represents an http cookie as specified in the HTTP State Management Mechanism spec (also known as a version 1 cookie).
version:
   0.3-2 18/06/1999
author:
   Ronald Tschalär
since:
   V0.3


Field Summary
protected  Stringcomment
    
protected  URIcomment_url
    
protected  booleandiscard
    
protected  booleandomain_set
    
protected  booleanpath_set
    
protected  int[]port_list
    
protected  Stringport_list_str
    
protected  booleanport_set
    
protected  intversion
    

Constructor Summary
public  Cookie2(String name, String value, String domain, int[] port_list, String path, Date expires, boolean discard, boolean secure, String comment, URI comment_url)
     Create a cookie.
protected  Cookie2(RoRequest req)
     Use parse() to create cookies.

Method Summary
public  booleandiscard()
    
public  StringgetComment()
    
public  URIgetCommentURL()
    
public  int[]getPorts()
    
public  intgetVersion()
    
protected static  Cookie[]parse(String set_cookie, RoRequest req)
     Parses the Set-Cookie2 header into an array of Cookies.
protected  booleansendWith(RoRequest req)
    
protected  StringtoExternalForm()
    
public  StringtoString()
     Create a string containing all the cookie fields.

Field Detail
comment
protected String comment(Code)



comment_url
protected URI comment_url(Code)



discard
protected boolean discard(Code)



domain_set
protected boolean domain_set(Code)



path_set
protected boolean path_set(Code)



port_list
protected int[] port_list(Code)



port_list_str
protected String port_list_str(Code)



port_set
protected boolean port_set(Code)



version
protected int version(Code)




Constructor Detail
Cookie2
public Cookie2(String name, String value, String domain, int[] port_list, String path, Date expires, boolean discard, boolean secure, String comment, URI comment_url)(Code)
Create a cookie.
Parameters:
  name - the cookie name
Parameters:
  value - the cookie value
Parameters:
  domain - the host this cookie will be sent to
Parameters:
  port_list - an array of allowed server ports for this cookie,or null if the the cookie may be sent to any port
Parameters:
  path - the path prefix for which this cookie will be sent
Parameters:
  epxires - the Date this cookie expires, or null if never
Parameters:
  discard - if true then the cookie will be discarded at theend of the session regardless of expiry
Parameters:
  secure - if true this cookie will only be over secure connections
Parameters:
  comment - the comment associated with this cookie, or null if none
Parameters:
  comment_url - the comment URL associated with this cookie, or nullif none
exception:
  NullPointerException - if name, value,domain, or pathis null



Cookie2
protected Cookie2(RoRequest req)(Code)
Use parse() to create cookies.
See Also:   Cookie2.parse(java.lang.String,HTTPClient.RoRequest)




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



getComment
public String getComment()(Code)
the comment string, or null if none was set



getCommentURL
public URI getCommentURL()(Code)
the comment url



getPorts
public int[] getPorts()(Code)
the array of ports



getVersion
public int getVersion()(Code)
the version as an int



parse
protected static Cookie[] parse(String set_cookie, RoRequest req) throws ProtocolException(Code)
Parses the Set-Cookie2 header into an array of Cookies.
Parameters:
  set_cookie - the Set-Cookie header received from the server
Parameters:
  req - the request used an array of Cookies as parsed from the Set-Cookie header
exception:
  ProtocolException - if an error occurs during parsing



sendWith
protected boolean sendWith(RoRequest req)(Code)

Parameters:
  req - the request to be sent true if this cookie should be sent with the request



toExternalForm
protected String toExternalForm()(Code)



toString
public String toString()(Code)
Create a string containing all the cookie fields. The format is that used in the Set-Cookie header.



Fields inherited from HTTPClient.Cookie
protected String domain(Code)(Java Doc)
protected Date expires(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected String path(Code)(Java Doc)
protected boolean secure(Code)(Java Doc)
protected String value(Code)(Java Doc)

Methods inherited from HTTPClient.Cookie
public boolean discard()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public Date expires()(Code)(Java Doc)
public String getDomain()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getPath()(Code)(Java Doc)
public String getValue()(Code)(Java Doc)
public boolean hasExpired()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isSecure()(Code)(Java Doc)
protected static Cookie[] parse(String set_cookie, RoRequest req) throws ProtocolException(Code)(Java Doc)
protected boolean sendWith(RoRequest req)(Code)(Java Doc)
protected String toExternalForm()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.