org.w3c.www.http
Class HttpDate
java.lang.Object
org.w3c.www.http.BasicValue
org.w3c.www.http.HttpDate
- All Implemented Interfaces:
- java.lang.Cloneable, HeaderValue
- Direct Known Subclasses:
- CookieDate
public class HttpDate
- extends BasicValue
Field Summary |
protected static byte[][] |
bdays
|
protected static byte[][] |
bmonthes
|
protected java.util.Calendar |
cal
|
protected java.lang.Long |
date
|
Method Summary |
java.lang.Object |
getValue()
Get the date value. |
protected void |
parse()
Parse this header value into its various components. |
void |
setValue(long date)
Set this date object value. |
protected void |
updateByteValue()
Update the RFC822 compatible header value for this object. |
Methods inherited from class org.w3c.www.http.BasicValue |
addBytes, appendValue, checkByteValue, clone, emit, error, invalidateByteValue, setBytes, setString, toExternalForm, toString, validate |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
bdays
protected static byte[][] bdays
bmonthes
protected static byte[][] bmonthes
date
protected java.lang.Long date
cal
protected java.util.Calendar cal
parse
protected void parse()
- Description copied from class:
BasicValue
- Parse this header value into its various components.
- Specified by:
parse
in class BasicValue
updateByteValue
protected void updateByteValue()
- Description copied from class:
BasicValue
- Update the RFC822 compatible header value for this object.
- Specified by:
updateByteValue
in class BasicValue
getValue
public java.lang.Object getValue()
- Get the date value.
- Specified by:
getValue
in interface HeaderValue
- Specified by:
getValue
in class BasicValue
- Returns:
- A Long giving the date as a number of mmilliseconds since epoch.
setValue
public void setValue(long date)
- Set this date object value.
- Parameters:
date
- The new date value, as the number of milliseconds since
epoch.