org.jwall.web.http
Class HttpHeader
java.lang.Object
org.jwall.web.http.HttpHeader
public class HttpHeader
- extends Object
CR
public static final char CR
- See Also:
- Constant Field Values
LF
public static final char LF
- See Also:
- Constant Field Values
SP
public static final String SP
- See Also:
- Constant Field Values
CRLF
public static final String CRLF
- See Also:
- Constant Field Values
HEADER_FIELD_SEPARATOR
public static final String HEADER_FIELD_SEPARATOR
- See Also:
- Constant Field Values
CRLF_BUF
public static final ByteBuffer CRLF_BUF
CASE_INSENSITIVE_HEADERS
public static boolean CASE_INSENSITIVE_HEADERS
CONNECTION
public static final String CONNECTION
DATE
public static final String DATE
PRAGMA
public static final String PRAGMA
TRAILER
public static final String TRAILER
TRANSFER_ENCODING
public static final String TRANSFER_ENCODING
UPGRADE
public static final String UPGRADE
VIA
public static final String VIA
WARNING
public static final String WARNING
CACHE_CONTROL
public static final String CACHE_CONTROL
ALLOW
public static final String ALLOW
CONTENT_ENCODING
public static final String CONTENT_ENCODING
CONTENT_LANGUAGE
public static final String CONTENT_LANGUAGE
CONTENT_LENGTH
public static final String CONTENT_LENGTH
CONTENT_LOCATION
public static final String CONTENT_LOCATION
CONTENT_MD5
public static final String CONTENT_MD5
CONTENT_RANGE
public static final String CONTENT_RANGE
CONTENT_TYPE
public static final String CONTENT_TYPE
EXPIRES
public static final String EXPIRES
LAST_MODIFIED
public static final String LAST_MODIFIED
HttpHeader
public HttpHeader(String head)
throws MessageFormatException
- Throws:
MessageFormatException
parseHeader
public Map<String,String> parseHeader(String s)
throws MessageFormatException
- Throws:
MessageFormatException
getHeader
public String getHeader()
getHeader
public String getHeader(String hn)
getHeaderNames
public Set<String> getHeaderNames()
debugString
public String debugString()
getContentLength
public Integer getContentLength()
- Returns the value (Integer) of the Content-Length header. If
the header is not present, a value of
-1 will be
returned.
- Returns:
- The content-length value of
-1 of no such
header is present.
isChunked
public boolean isChunked()
- This will return, if the header indicates a chunked transfer encoding.
- Returns:
isConnectionCloseSet
public boolean isConnectionCloseSet()
Copyright © 2012 jwall.org. All Rights Reserved.