Methods Summary |
---|
public java.lang.String | encodeBody()Returns canonical form.
return expires.toString();
|
public int | getExpires()Gets the expires value of the ExpiresHeader. This expires value is
relative time.
return expires.intValue();
|
public java.lang.Object | getValue()Gets the value for the header as opaque object (returned value
will depend upon the header. Note that this is not the same as
the getHeaderValue above.
return expires;
|
public void | setExpires(int expires)Sets the relative expires value of the ExpiresHeader.
The expires value MUST be greater than zero and MUST be
less than 2**31.
if (expires < 0)
throw new IllegalArgumentException("bad argument " + expires);
this.expires = new Integer(expires);
|
public void | setHeaderValue(java.lang.String value)Sets the header value field.
int val;
try {
val = Integer.parseInt(value);
setExpires(val);
} catch (IllegalArgumentException iae) {
throw iae;
}
|