org.mortbay.jetty
Class HttpFields.Field
java.lang.Object
org.mortbay.jetty.HttpFields.Field
- Enclosing class:
- HttpFields
public static final class HttpFields.Field
- extends Object
_name
private Buffer _name
_value
private Buffer _value
_stringValue
private String _stringValue
_numValue
private long _numValue
_next
private HttpFields.Field _next
_prev
private HttpFields.Field _prev
_revision
private int _revision
HttpFields.Field
private HttpFields.Field(Buffer name,
Buffer value,
long numValue,
int revision)
clear
private void clear()
destroy
private void destroy()
reset
private void reset(Buffer value,
long numValue,
int revision)
- Reassign a value to this field. Checks if the string value is the same as that in the char
array, if so then just reuse existing value.
write
public void write(Writer writer)
throws IOException
- Throws:
IOException
put
public void put(Buffer buffer)
throws IOException
- Throws:
IOException
getName
public String getName()
getNameBuffer
Buffer getNameBuffer()
getNameOrdinal
public int getNameOrdinal()
getValue
public String getValue()
getValueBuffer
Buffer getValueBuffer()
getValueOrdinal
public int getValueOrdinal()
getIntValue
public int getIntValue()
getLongValue
public long getLongValue()
toString
public String toString()
- Overrides:
toString
in class Object