org.mortbay.jetty
Class HttpFields.Field

java.lang.Object
  extended by org.mortbay.jetty.HttpFields.Field
Enclosing class:
HttpFields

public static final class HttpFields.Field
extends Object


Field Summary
private  Buffer _name
           
private  HttpFields.Field _next
           
private  long _numValue
           
private  HttpFields.Field _prev
           
private  int _revision
           
private  String _stringValue
           
private  Buffer _value
           
 
Constructor Summary
private HttpFields.Field(Buffer name, Buffer value, long numValue, int revision)
           
 
Method Summary
private  void clear()
           
private  void destroy()
           
 int getIntValue()
           
 long getLongValue()
           
 String getName()
           
(package private)  Buffer getNameBuffer()
           
 int getNameOrdinal()
           
 String getValue()
           
(package private)  Buffer getValueBuffer()
           
 int getValueOrdinal()
           
 void put(Buffer buffer)
           
private  void reset(Buffer value, long numValue, int revision)
          Reassign a value to this field.
 String toString()
           
 void write(Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_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
Constructor Detail

HttpFields.Field

private HttpFields.Field(Buffer name,
                         Buffer value,
                         long numValue,
                         int revision)
Method Detail

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