Class HttpHeaders
- java.lang.Object
-
- com.digitalpebble.stormcrawler.protocol.HttpHeaders
-
public final class HttpHeaders extends Object
A collection of HTTP header names and utilities around header values.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTENT_DISPOSITION
static String
CONTENT_ENCODING
static String
CONTENT_LANGUAGE
static String
CONTENT_LENGTH
static String
CONTENT_LOCATION
static String
CONTENT_MD5
static String
CONTENT_TYPE
static DateTimeFormatter
HTTP_DATE_FORMATTER
Formatter for dates in HTTP headers, used to fill the "If-Modified-Since" request header field, e.g.static DateTimeFormatter
ISO_INSTANT_FORMATTER
Formatter to parse ISO-formatted dates persisted in status indexstatic String
LAST_MODIFIED
static String
LOCATION
static String
TRANSFER_ENCODING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatHttpDate(String isoDate)
Format an ISO date string as HTTP date used in HTTP headers, e.g.,
-
-
-
Field Detail
-
TRANSFER_ENCODING
public static final String TRANSFER_ENCODING
- See Also:
- Constant Field Values
-
CONTENT_ENCODING
public static final String CONTENT_ENCODING
- See Also:
- Constant Field Values
-
CONTENT_LANGUAGE
public static final String CONTENT_LANGUAGE
- See Also:
- Constant Field Values
-
CONTENT_LENGTH
public static final String CONTENT_LENGTH
- See Also:
- Constant Field Values
-
CONTENT_LOCATION
public static final String CONTENT_LOCATION
- See Also:
- Constant Field Values
-
CONTENT_DISPOSITION
public static final String CONTENT_DISPOSITION
- See Also:
- Constant Field Values
-
CONTENT_MD5
public static final String CONTENT_MD5
- See Also:
- Constant Field Values
-
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
-
LAST_MODIFIED
public static final String LAST_MODIFIED
- See Also:
- Constant Field Values
-
LOCATION
public static final String LOCATION
- See Also:
- Constant Field Values
-
HTTP_DATE_FORMATTER
public static final DateTimeFormatter HTTP_DATE_FORMATTER
Formatter for dates in HTTP headers, used to fill the "If-Modified-Since" request header field, e.g.Sun, 06 Nov 1994 08:49:37 GMT
See sec. 3.3.1 in RFC 2616 and sec. 7.1.1.1 in RFC 7231. The latter specifies the format defined in RFC 1123 as the "preferred" format.
-
ISO_INSTANT_FORMATTER
public static final DateTimeFormatter ISO_INSTANT_FORMATTER
Formatter to parse ISO-formatted dates persisted in status index
-
-
Method Detail
-
formatHttpDate
public static String formatHttpDate(String isoDate)
Format an ISO date string as HTTP date used in HTTP headers, e.g.,1994-11-06T08:49:37.000Z
is formatted toSun, 06 Nov 1994 08:49:37 GMT
SeeHTTP_DATE_FORMATTER
-
-