|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.util.HttpUtils
public class HttpUtils
This class provides utilities for handling some semi-trivial HTTP stuff that would otherwise be handled elsewhere.
Constructor Summary | |
---|---|
HttpUtils()
|
Method Summary | |
---|---|
static java.lang.String |
formatHttpDate(java.util.Date date)
Formats a java Date according to rfc 1123, the rfc standard for dates in http. |
static void |
setCacheHeaders(RunData data,
int expiry)
This method sets the required expiration headers in the response for a given RunData object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpUtils()
Method Detail |
---|
public static java.lang.String formatHttpDate(java.util.Date date)
date
- The Date to format
public static void setCacheHeaders(RunData data, int expiry)
data
- The RunData object we are setting cache information for.expiry
- The number of milliseconds until the document should expire,
0
indicating immediate expiration (i.e. no caching).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |