| java.lang.Object org.apache.turbine.util.HttpUtils
HttpUtils | public class HttpUtils (Code) | | This class provides utilities for handling some semi-trivial HTTP stuff that
would othterwise be handled elsewhere.
author: Magnús Þór Torfason version: $Id: HttpUtils.java 534527 2007-05-02 16:10:59Z tv $ |
Method Summary | |
public static String | formatHttpDate(Date date) Formats a java Date according to rfc 1123, the rfc standard for dates in
http. | public static void | setCacheHeaders(RunData data, int expiry) This method sets the required expiration headers in the response for a
given RunData object. |
formatHttpDate | public static String formatHttpDate(Date date)(Code) | | Formats a java Date according to rfc 1123, the rfc standard for dates in
http.
Parameters: date - The Date to format A String represeentation of the date |
setCacheHeaders | public static void setCacheHeaders(RunData data, int expiry)(Code) | | This method sets the required expiration headers in the response for a
given RunData object. This method attempts to set all relevant headers,
both for HTTP 1.0 and HTTP 1.1.
Parameters: data - The RunData object we are setting cache information for. Parameters: expiry - The number of seconds untill the document should expire,0 indicating immediate expiration (i.e. no caching). |
|
|