Package org.eclipse.jetty.http
Class HttpField
- java.lang.Object
-
- org.eclipse.jetty.http.HttpField
-
- Direct Known Subclasses:
HostPortHttpField
,HttpCookie.SetCookieHttpField
,HttpField.IntValueHttpField
,HttpField.LongValueHttpField
,PreEncodedHttpField
,StaticTableHttpField
public class HttpField extends java.lang.Object
An HTTP Field
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpField.IntValueHttpField
static class
HttpField.LongValueHttpField
-
Constructor Summary
Constructors Constructor Description HttpField(java.lang.String name, java.lang.String value)
HttpField(HttpHeader header, java.lang.String value)
HttpField(HttpHeader header, java.lang.String name, java.lang.String value)
HttpField(HttpHeader header, HttpHeaderValue value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.String search)
Look for a value in a possible multi valued fieldboolean
equals(java.lang.Object o)
HttpHeader
getHeader()
int
getIntValue()
long
getLongValue()
java.lang.String
getLowerCaseName()
java.lang.String
getName()
java.lang.String
getValue()
java.lang.String[]
getValues()
int
hashCode()
boolean
is(java.lang.String name)
boolean
isSameName(HttpField field)
java.lang.String
toString()
-
-
-
Constructor Detail
-
HttpField
public HttpField(HttpHeader header, java.lang.String name, java.lang.String value)
-
HttpField
public HttpField(HttpHeader header, java.lang.String value)
-
HttpField
public HttpField(HttpHeader header, HttpHeaderValue value)
-
HttpField
public HttpField(java.lang.String name, java.lang.String value)
-
-
Method Detail
-
getHeader
public HttpHeader getHeader()
-
getName
public java.lang.String getName()
-
getLowerCaseName
public java.lang.String getLowerCaseName()
-
getValue
public java.lang.String getValue()
-
getIntValue
public int getIntValue()
-
getLongValue
public long getLongValue()
-
getValues
public java.lang.String[] getValues()
-
contains
public boolean contains(java.lang.String search)
Look for a value in a possible multi valued field- Parameters:
search
- Values to search for (case insensitive)- Returns:
- True iff the value is contained in the field value entirely or as an element of a quoted comma separated list. List element parameters (eg qualities) are ignored, except if they are q=0, in which case the item itself is ignored.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isSameName
public boolean isSameName(HttpField field)
-
is
public boolean is(java.lang.String name)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-