Methods Summary |
---|
public java.lang.Object | clone()Copies the current instance.
DateHeader retval = new DateHeader();
retval.setDate(this.getDate());
return retval;
|
public java.lang.String | encodeBody()Encodes into canonical form.
StringBuffer sbuf = new StringBuffer();
sbuf.append(encodeCalendar(date.getCalendar()));
return sbuf.toString();
|
public java.util.Date | getDate()Gets the expiry date.
return this.date.getTime();
|
public java.lang.Object | getValue()Gets the calendar date.
return this.date;
|
public void | setDate(java.util.Date dateToSet)Sets the expiry date.
this.date.setTime(dateToSet);
|
public void | setDate(java.util.Calendar calendarToSet)Sets the date.
this.date.setCalendar(calendarToSet);
|
public java.lang.String | toString()Encodes the object. Calls encode().
return encode();
|