All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.util.ExDate

java.lang.Object
   |
   +----java.util.Date
           |
           +----sun.server.util.ExDate

public class ExDate
extends Date
This class extends Date class to return a proper RFC 1123 formatted String in the toGMTString() method. Eventually to be put back into java.util.Date


Constructor Index

 o ExDate()
 o ExDate(int, int, int)
 o ExDate(int, int, int, int, int)
 o ExDate(int, int, int, int, int, int)
 o ExDate(long)
 o ExDate(String)

Method Index

 o toCookieString()
Return a date formatted for use in Cookies, since they use a non-standard format currently: "EEE, dd-MMM-yyyy hh:mm:ss z" (ex.
 o toGMTString()
Return RFC 1123 formatted String representation for the date

Constructors

 o ExDate
  public ExDate()
 o ExDate
  public ExDate(int year,
                int month,
                int date)
 o ExDate
  public ExDate(int year,
                int month,
                int date,
                int hrs,
                int min)
 o ExDate
  public ExDate(int year,
                int month,
                int date,
                int hrs,
                int min,
                int sec)
 o ExDate
  public ExDate(long date)
 o ExDate
  public ExDate(String s)

Methods

 o toGMTString
  public String toGMTString()
Return RFC 1123 formatted String representation for the date

Overrides:
toGMTString in class Date
 o toCookieString
  public String toCookieString()
Return a date formatted for use in Cookies, since they use a non-standard format currently: "EEE, dd-MMM-yyyy hh:mm:ss z" (ex. Sat, 11-Jan-1997 00:38:43 GMT)

Returns:
A string formatted properly for the Netscape cookie spec.

All Packages  Class Hierarchy  This Package  Previous  Next  Index