org.restlet.engine.header
Class DateWriter
java.lang.Object
org.restlet.engine.header.DateWriter
public class DateWriter
- extends Object
Date header writer.
- Author:
- Jerome Louvel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateWriter
public DateWriter()
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.