Java Utililty Methods HTTP Date

List of utility methods to do HTTP Date

Description

The list of methods to do HTTP Date are organized into topic(s).

Method

DateFormatGetHTTPDateFormater()
Get a new date formatter compatible with HTTP headers protocol.
SimpleDateFormat f = new SimpleDateFormat(HTTP_DATE_FORMAT);
f.setTimeZone(GMT_TZ);
return f;
SimpleDateFormatgetHttpDateFormatter()
get Http Date Formatter
if (httpFormatter.get() == null) {
    httpFormatter.set(new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US));
    httpFormatter.get().setTimeZone(TimeZone.getTimeZone("GMT"));
return httpFormatter.get();
StringgetHttpDateString(Date date)
Formats a Date according to the HTTP specification standard date format.
return HTTP_DATE_FORMAT.format(date) + " GMT";