| java.lang.Object org.acegisecurity.ui.savedrequest.FastHttpDateFormat
FastHttpDateFormat | public class FastHttpDateFormat (Code) | | Utility class to generate HTTP dates.
This class is based on code in Apache Tomcat.
author: Remy Maucherat author: Andrey Grebnev version: $Id: FastHttpDateFormat.java 1784 2007-02-24 21:00:24Z luke_t $ |
currentDate | protected static String currentDate(Code) | | Current formatted date.
|
currentDateGenerated | protected static long currentDateGenerated(Code) | | Instant on which the currentDate object was generated.
|
formatCache | final protected static HashMap formatCache(Code) | | Formatter cache.
|
formats | final protected static SimpleDateFormat[] formats(Code) | | The set of SimpleDateFormat formats to use in getDateHeader() .
|
gmtZone | final protected static TimeZone gmtZone(Code) | | GMT timezone - all HTTP dates are on GMT
|
parseCache | final protected static HashMap parseCache(Code) | | Parser cache.
|
formatDate | final public static String formatDate(long value, DateFormat threadLocalformat)(Code) | | Formats a specified date to HTTP format. If local format is not null , it's used instead.
Parameters: value - Date value to format Parameters: threadLocalformat - The format to use (or null -- then HTTP format will be used) Formatted date |
getCurrentDate | final public static String getCurrentDate()(Code) | | Gets the current date in HTTP format.
Current date in HTTP format |
parseDate | final public static long parseDate(String value, DateFormat[] threadLocalformats)(Code) | | Tries to parse the given date as an HTTP date. If local format list is not null , it's used
instead.
Parameters: value - The string to parse Parameters: threadLocalformats - Array of formats to use for parsing. If null , HTTP formats are used. Parsed date (or -1 if error occured) |
|
|