public class HttpField extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpField.CachedHttpField
A HTTP Field optimised to be reused.
|
Modifier and Type | Field and Description |
---|---|
static Trie<HttpField> |
CACHE
Cache of common
HttpField s including:
Common static combinations such as:
Connection: close
Accept-Encoding: gzip
Content-Length: 0
Combinations of Content-Type header for common mime types by common charsets
Most common headers with null values so that a lookup will at least
determine the header name even if the name:value combination is not cached
|
static Trie<HttpField> |
CONTENT_TYPE |
Constructor and Description |
---|
HttpField(HttpHeader header,
HttpHeaderValue value) |
HttpField(HttpHeader header,
String value) |
HttpField(HttpHeader header,
String name,
String value) |
HttpField(String name,
String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String value) |
HttpHeader |
getHeader() |
int |
getIntValue() |
long |
getLongValue() |
String |
getName() |
String |
getValue() |
boolean |
isSame(HttpField field) |
void |
putTo(ByteBuffer bufferInFillMode) |
void |
putValueTo(ByteBuffer buffer) |
String |
toString() |
public static final Trie<HttpField> CACHE
HttpField
s including: public HttpField(HttpHeader header, String name, String value)
public HttpField(HttpHeader header, String value)
public HttpField(HttpHeader header, HttpHeaderValue value)
public HttpHeader getHeader()
public String getName()
public String getValue()
public boolean contains(String value)
public int getIntValue()
public long getLongValue()
public void putTo(ByteBuffer bufferInFillMode)
public void putValueTo(ByteBuffer buffer)
public boolean isSame(HttpField field)
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.