public final class HttpHeaders extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_CONTROL |
static String |
CACHE_CONTROL_MAXAGE |
static String |
CACHE_CONTROL_MUST_REVALIDATE |
static String |
CACHE_CONTROL_NO_CACHE |
static String |
CACHE_CONTROL_PRIVATE |
static String |
CACHE_CONTROL_PUBLIC |
static String |
CONTENT_ENCODING |
static String |
CONTENT_ENCODING_GZIP |
static String |
CONTENT_LENGTH |
static String |
CONTENT_TYPE |
static String |
CONTENT_TYPE_APPLICATION_XJAVASCRIPT_UTF8 |
static String |
CONTENT_TYPE_TEXT_CSS |
static String |
CONTENT_TYPE_TEXT_HTML |
static String |
CONTENT_TYPE_TEXT_HTML_UTF8 |
static String |
CONTENT_TYPE_TEXT_PLAIN |
static String |
DATE |
static String |
ETAG |
static String |
EXPIRES |
static String |
IF_MODIFIED_SINCE |
static String |
IF_NONE_MATCH |
static String |
LAST_MODIFIED |
static long |
MS_DAY |
static long |
MS_HR |
static long |
MS_MIN |
static long |
MS_SEC |
static long |
SEC_DAY |
static long |
SEC_HR |
static long |
SEC_MIN |
static long |
SEC_YR |
Constructor and Description |
---|
HttpHeaders() |
Modifier and Type | Method and Description |
---|---|
static long |
fromInternetDateFormat(String timeStr)
Converts an HTTP date string into a file-style date/time.
|
static String |
toInternetDateFormat(long time)
Converts a file-style date/time into a string form that is compatible with
HTTP.
|
public static final long MS_SEC
public static final long MS_MIN
public static final long MS_HR
public static final long MS_DAY
public static final long SEC_MIN
public static final long SEC_HR
public static final long SEC_DAY
public static final long SEC_YR
public static final String CACHE_CONTROL
public static final String CACHE_CONTROL_MAXAGE
public static final String CACHE_CONTROL_MUST_REVALIDATE
public static final String CACHE_CONTROL_NO_CACHE
public static final String CACHE_CONTROL_PRIVATE
public static final String CACHE_CONTROL_PUBLIC
public static final String CONTENT_ENCODING
public static final String CONTENT_ENCODING_GZIP
public static final String CONTENT_LENGTH
public static final String CONTENT_TYPE
public static final String CONTENT_TYPE_APPLICATION_XJAVASCRIPT_UTF8
public static final String CONTENT_TYPE_TEXT_CSS
public static final String CONTENT_TYPE_TEXT_HTML
public static final String CONTENT_TYPE_TEXT_HTML_UTF8
public static final String CONTENT_TYPE_TEXT_PLAIN
public static final String DATE
public static final String ETAG
public static final String EXPIRES
public static final String IF_MODIFIED_SINCE
public static final String IF_NONE_MATCH
public static final String LAST_MODIFIED
public static long fromInternetDateFormat(String timeStr)
public static String toInternetDateFormat(long time)
Copyright © 2018. All rights reserved.