| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final Buffer | |
| public static final BufferDateCache | |
| private static SimpleDateFormat[] | |
| private static final String[] | |
| private static int | |
| private static TimeZone | |
| private static Float | |
| private static StringMap | |
| public static final String | |
| private static Float | |
| protected HashMap | |
| private Calendar | |
| private StringBuffer | |
| protected SimpleDateFormat[] | |
| protected ArrayList | |
| protected int | |
| private static String[] | |
| private static String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private void | |
| public void | |
| public void | addDateField(String
the field name name, long the field date value date)Sets the value of a date field. |
| public void | addLongField(String
the field name name, long the field long value value)Sets the value of an long field. |
| public void | addLongField(Buffer
the field name name, long the field long value value)Sets the value of an long field. |
| public void | |
| public void | |
| public boolean | |
| public boolean | |
| public void | |
| public static String | formatDate(long date, boolean cookie)
Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'" or "EEE, dd-MMM-yy HH:mm:ss 'GMT'"for cookies |
| public static String | formatDate(Calendar calendar, boolean cookie)
Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'" or "EEE, dd-MMM-yy HH:mm:ss 'GMT'"for cookies |
| public static String | formatDate(StringBuffer buf, long date, boolean cookie)
Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'" or "EEE, dd-MMM-yy HH:mm:ss 'GMT'"for cookies |
| public static void | formatDate(StringBuffer buf, Calendar calendar, boolean cookie)
Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'" or "EEE, dd-MMM-yy HH:mm:ss 'GMT'"for cookies |
| public Buffer | |
| public long | |
| private HttpFields. | |
| private HttpFields. | |
| public Enumeration | |
| public Iterator | |
| public long | |
| public long | |
| public static Float | |
| public String | Returns: the value of a field, or null if not found. For multiple fields of the same name, only the first is returned.the case-insensitive field name name)
|
| public String | Returns: the value of a field, or null if not found. For multiple fields of the same name, only the first is returned.the case-insensitive field name name)
|
| public Enumeration | |
| public Enumeration | |
| public Enumeration | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | putDateField(Buffer
the field name name, long the field date value date)Sets the value of a date field. |
| public void | putDateField(String
the field name name, long the field date value date)Sets the value of a date field. |
| public void | putLongField(Buffer
the field name name, long the field long value value)Sets the value of an long field. |
| public void | putLongField(String
the field name name, long the field long value value)Sets the value of an long field. |
| public static List | Returns: values in quality order.Enumeration of values with quality parameters e)List values in quality order. |
| public void | |
| public void | |
| public String | |
| public static String | Returns: The value.The Field value, possibly with parameteres. value, Map<K, V> A map to populate with the parameters, or null parameters)Get field value parameters. |
| __01Jan1970 | back to summary |
|---|---|
| public static final String __01Jan1970 | |
| __01Jan1970_BUFFER | back to summary |
|---|---|
| public static final Buffer __01Jan1970_BUFFER | |
| __dateCache | back to summary |
|---|---|
| public static final BufferDateCache __dateCache | |
| __dateReceive | back to summary |
|---|---|
| private static SimpleDateFormat[] __dateReceive | |
| __dateReceiveFmt | back to summary |
|---|---|
| private static final String[] __dateReceiveFmt | |
| __dateReceiveInit | back to summary |
|---|---|
| private static int __dateReceiveInit | |
| __GMT | back to summary |
|---|---|
| private static TimeZone __GMT | |
| __one | back to summary |
|---|---|
| private static Float __one | |
| __qualities | back to summary |
|---|---|
| private static StringMap __qualities | |
| __separators | back to summary |
|---|---|
| public static final String __separators | |
| __zero | back to summary |
|---|---|
| private static Float __zero | |
| _bufferMap | back to summary |
|---|---|
| protected HashMap<K, V> _bufferMap | |
| _calendar | back to summary |
|---|---|
| private Calendar _calendar | |
| _dateBuffer | back to summary |
|---|---|
| private StringBuffer _dateBuffer | |
| _dateReceive | back to summary |
|---|---|
| protected SimpleDateFormat[] _dateReceive | |
| _fields | back to summary |
|---|---|
| protected ArrayList<HttpFields. | |
| _revision | back to summary |
|---|---|
| protected int _revision | |
| DAYS | back to summary |
|---|---|
| private static String[] DAYS | |
| MONTHS | back to summary |
|---|---|
| private static String[] MONTHS | |
| HttpFields | back to summary |
|---|---|
| public HttpFields() Constructor. | |
| add | back to summary |
|---|---|
| public void add(String name, String value) throws IllegalArgumentException Add to or set a field. If the field is allowed to have multiple values, add will add multiple headers of the same name.
| |
| add | back to summary |
|---|---|
| public void add(Buffer name, Buffer value) throws IllegalArgumentException Add to or set a field. If the field is allowed to have multiple values, add will add multiple headers of the same name.
| |
| add | back to summary |
|---|---|
| private void add(Buffer name, Buffer value, long numValue) throws IllegalArgumentException Add to or set a field. If the field is allowed to have multiple values, add will add multiple headers of the same name.
| |
| add | back to summary |
|---|---|
| public void add(HttpFields fields) Add fields from another HttpFields instance. Single valued fields are replaced, while all others are added. | |
| addDateField | back to summary |
|---|---|
| public void addDateField(String name, long date) Sets the value of a date field.
| |
| addLongField | back to summary |
|---|---|
| public void addLongField(String name, long value) Sets the value of an long field.
| |
| addLongField | back to summary |
|---|---|
| public void addLongField(Buffer name, long value) Sets the value of an long field.
| |
| addSetCookie | back to summary |
|---|---|
| public void addSetCookie(Cookie cookie) Format a set cookie value
| |
| clear | back to summary |
|---|---|
| public void clear() Clear the header. | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Buffer name) | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(String name) | |
| destroy | back to summary |
|---|---|
| public void destroy() Destroy the header. Help the garbage collector by null everything that we can. | |
| formatDate | back to summary |
|---|---|
| public static String formatDate(long date, boolean cookie) Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'" or "EEE, dd-MMM-yy HH:mm:ss 'GMT'"for cookies | |
| formatDate | back to summary |
|---|---|
| public static String formatDate(Calendar calendar, boolean cookie) Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'" or "EEE, dd-MMM-yy HH:mm:ss 'GMT'"for cookies | |
| formatDate | back to summary |
|---|---|
| public static String formatDate(StringBuffer buf, long date, boolean cookie) Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'" or "EEE, dd-MMM-yy HH:mm:ss 'GMT'"for cookies | |
| formatDate | back to summary |
|---|---|
| public static void formatDate(StringBuffer buf, Calendar calendar, boolean cookie) Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'" or "EEE, dd-MMM-yy HH:mm:ss 'GMT'"for cookies | |
| get | back to summary |
|---|---|
| public Buffer get(Buffer name) | |
| getDateField | back to summary |
|---|---|
| public long getDateField(String name) Get a header as a date value. Returns the value of a date field, or -1 if not found. The case of the field name is ignored.
| |
| getField | back to summary |
|---|---|
| private HttpFields. | |
| getField | back to summary |
|---|---|
| private HttpFields. | |
| getFieldNames | back to summary |
|---|---|
| public Enumeration Get enumeration of header _names. Returns an enumeration of strings representing the header _names for this request. | |
| getFields | back to summary |
|---|---|
| public Iterator Get enumeration of Fields Returns an enumeration of Fields for this request. | |
| getLongField | back to summary |
|---|---|
| public long getLongField(String name) throws NumberFormatException Get a header as an long value. Returns the value of an integer field or -1 if not found. The case of the field name is ignored.
| |
| getLongField | back to summary |
|---|---|
| public long getLongField(Buffer name) throws NumberFormatException Get a header as an long value. Returns the value of an integer field or -1 if not found. The case of the field name is ignored.
| |
| getQuality | back to summary |
|---|---|
| public static Float getQuality(String value) | |
| getStringField | back to summary |
|---|---|
| public String getStringField(String name) | |
| getStringField | back to summary |
|---|---|
| public String getStringField(Buffer name) | |
| getValues | back to summary |
|---|---|
| public Enumeration Get multi headers
| |
| getValues | back to summary |
|---|---|
| public Enumeration Get multi headers
| |
| getValues | back to summary |
|---|---|
| public Enumeration Get multi field values with separator. The multiple values can be represented as separate headers of the same name, or by a single header using the separator(s), or a combination of both. Separators may be quoted.
| |
| put | back to summary |
|---|---|
| public void put(String name, String value) Set a field. | |
| put | back to summary |
|---|---|
| public void put(Buffer name, String value) Set a field. | |
| put | back to summary |
|---|---|
| public void put(Buffer name, Buffer value) Set a field. | |
| put | back to summary |
|---|---|
| public void put(Buffer name, Buffer value, long numValue) Set a field. | |
| put | back to summary |
|---|---|
| public void put(String name, List<E> list) Set a field. | |
| put | back to summary |
|---|---|
| public void put(Buffer buffer) throws IOException | |
| putDateField | back to summary |
|---|---|
| public void putDateField(Buffer name, long date) Sets the value of a date field.
| |
| putDateField | back to summary |
|---|---|
| public void putDateField(String name, long date) Sets the value of a date field.
| |
| putLongField | back to summary |
|---|---|
| public void putLongField(Buffer name, long value) Sets the value of an long field.
| |
| putLongField | back to summary |
|---|---|
| public void putLongField(String name, long value) Sets the value of an long field.
| |
| qualityList | back to summary |
|---|---|
| public static List List values in quality order.
| |
| remove | back to summary |
|---|---|
| public void remove(String name) Remove a field. | |
| remove | back to summary |
|---|---|
| public void remove(Buffer name) Remove a field. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| valueParameters | back to summary |
|---|---|
| public static String valueParameters(String value, Map<K, V> parameters) Get field value parameters. Some field values can have parameters. This method separates the value from the parameters and optionally populates a map with the paramters. For example: FieldName : Value ; param1=val1 ; param2=val2 | |
| Modifier and Type | Field and Description |
|---|---|
| private Buffer | |
| private HttpFields. | |
| private long | |
| private HttpFields. | |
| private int | |
| private String | |
| private Buffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public int | |
| public long | |
| public String | |
| pack-priv Buffer | |
| public int | |
| public String | |
| public Buffer | |
| public int | |
| public void | |
| private void | |
| public String |
| _name | back to summary |
|---|---|
| private Buffer _name | |
| _next | back to summary |
|---|---|
| private HttpFields. | |
| _numValue | back to summary |
|---|---|
| private long _numValue | |
| _prev | back to summary |
|---|---|
| private HttpFields. | |
| _revision | back to summary |
|---|---|
| private int _revision | |
| _stringValue | back to summary |
|---|---|
| private String _stringValue | |
| _value | back to summary |
|---|---|
| private Buffer _value | |
| Field | back to summary |
|---|---|
| private Field(Buffer name, Buffer value, long numValue, int revision) | |
| clear | back to summary |
|---|---|
| private void clear() | |
| destroy | back to summary |
|---|---|
| private void destroy() | |
| getIntValue | back to summary |
|---|---|
| public int getIntValue() | |
| getLongValue | back to summary |
|---|---|
| public long getLongValue() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getNameBuffer | back to summary |
|---|---|
| pack-priv Buffer getNameBuffer() | |
| getNameOrdinal | back to summary |
|---|---|
| public int getNameOrdinal() | |
| getValue | back to summary |
|---|---|
| public String getValue() | |
| getValueBuffer | back to summary |
|---|---|
| public Buffer getValueBuffer() | |
| getValueOrdinal | back to summary |
|---|---|
| public int getValueOrdinal() | |
| put | back to summary |
|---|---|
| public void put(Buffer buffer) throws IOException | |
| reset | back to summary |
|---|---|
| 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. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |