public class HttpUtils extends Object
Constructor and Description |
---|
HttpUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
formatHttpDate(Date date)
Formats a java Date according to rfc 1123, the rfc standard for dates in
http.
|
static void |
setCacheHeaders(PipelineData pipelineData,
int expiry)
This method sets the required expiration headers in the response for a
given
PipelineData object. |
public HttpUtils()
public static String formatHttpDate(Date date)
date
- The Date to formatpublic static void setCacheHeaders(PipelineData pipelineData, int expiry)
PipelineData
object. This method attempts to set all relevant headers,
both for HTTP 1.0 and HTTP 1.1.pipelineData
- The PipelineData
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).Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.