org.restlet.engine.header
Class DateWriter

java.lang.Object
  extended by org.restlet.engine.header.DateWriter

public class DateWriter
extends Object

Date header writer.

Author:
Jerome Louvel

Constructor Summary
DateWriter()
           
 
Method Summary
static String write(Date date)
          Writes a date header.
static String write(Date date, boolean cookie)
          Writes a date header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateWriter

public DateWriter()
Method Detail

write

public static String write(Date date)
Writes a date header.

Parameters:
date - The date to write.
Returns:
The formatted date.

write

public static String write(Date date,
                           boolean cookie)
Writes a date header.

Parameters:
date - The date to write.
cookie - Indicates if the date should be in the cookie format.
Returns:
The formatted date.


Copyright © 2005-2013 Restlet.