| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private String[] | |
| private final int | |
| private int | |
| private long | |
| private String[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public static String | canonicalID(String id)
Convert a message-id string to canonical form (strips off leading and trailing <>s) |
| private void | |
| private long | |
| public synchronized Map | |
| public boolean | Returns: true if there is a changeRemoves bare Negotiate and Kerberos headers when an "NTLM ..." appears. |
| public synchronized String | |
| public synchronized String | |
| public synchronized String | |
| public synchronized Map | |
| public synchronized Map | |
| public synchronized int | |
| public synchronized String | |
| public synchronized String | |
| private void | |
| private static boolean | Returns: true if the line might be a request line.the line to check. line)Check if a line of message header looks like a request line. |
| public void | |
| public Iterator | multiValueIterator(String k)
return an Iterator that returns all values of a particular key in sequence |
| public void | |
| public synchronized void | |
| public void | |
| private static void | print(int nkeys, String[] keys, String[] values, PrintStream p)
Prints the key-value pairs represented by this header. |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void | setIfNotSet(String k, String v)
Set's the value of a key only if there is no key with that value already. |
| public synchronized String |
| keys | back to summary |
|---|---|
| private String[] keys | |
| maxHeaderSize | back to summary |
|---|---|
| private final int maxHeaderSize | |
| nkeys | back to summary |
|---|---|
| private int nkeys | |
| size | back to summary |
|---|---|
| private long size | |
| values | back to summary |
|---|---|
| private String[] values | |
| MessageHeader | back to summary |
|---|---|
| public MessageHeader() | |
| MessageHeader | back to summary |
|---|---|
| public MessageHeader(int maxHeaderSize) | |
| MessageHeader | back to summary |
|---|---|
| public MessageHeader(InputStream is) throws IOException | |
| add | back to summary |
|---|---|
| public synchronized void add(String k, String v) Adds a key value pair to the end of the header. Duplicates are allowed | |
| canonicalID | back to summary |
|---|---|
| public static String canonicalID(String id) Convert a message-id string to canonical form (strips off leading and trailing <>s) | |
| checkMaxHeaderSize | back to summary |
|---|---|
| private void checkMaxHeaderSize(int sz) throws ProtocolException | |
| checkNewSize | back to summary |
|---|---|
| private long checkNewSize(long size, int name, int value) throws ProtocolException | |
| filterAndAddHeaders | back to summary |
|---|---|
| public synchronized Map | |
| filterNTLMResponses | back to summary |
|---|---|
| public boolean filterNTLMResponses(String k) Removes bare Negotiate and Kerberos headers when an "NTLM ..." appears. All Performed on headers with key being k.
| |
| findNextValue | back to summary |
|---|---|
| public synchronized String findNextValue(String k, String v) Deprecated: Use multiValueIterator() instead. Find the next value that corresponds to this key. It finds the first value that follows v. To iterate over all the values of a key use:
for(String v=h.findValue(k); v!=null; v=h.findNextValue(k, v)) {
...
}
| |
| findValue | back to summary |
|---|---|
| public synchronized String findValue(String k) Find the value that corresponds to this key. It finds only the first occurrence of the key. | |
| getHeaderNamesInList | back to summary |
|---|---|
| public synchronized String getHeaderNamesInList() Returns list of header names in a comma separated list | |
| getHeaders | back to summary |
|---|---|
| public synchronized Map | |
| getHeaders | back to summary |
|---|---|
| public synchronized Map | |
| getKey | back to summary |
|---|---|
| public synchronized int getKey(String k) | |
| getKey | back to summary |
|---|---|
| public synchronized String getKey(int n) | |
| getValue | back to summary |
|---|---|
| public synchronized String getValue(int n) | |
| grow | back to summary |
|---|---|
| private void grow() grow the key/value arrays as needed | |
| isRequestline | back to summary |
|---|---|
| private static boolean isRequestline(String line) Check if a line of message header looks like a request line. This method does not perform a full validation but simply returns false if the line does not end with 'HTTP/[1-9].[0-9]'
| |
| mergeHeader | back to summary |
|---|---|
| public void mergeHeader(InputStream is) throws IOException Parse and merge a MIME header from an input stream.
| |
| multiValueIterator | back to summary |
|---|---|
| public Iterator return an Iterator that returns all values of a particular key in sequence | |
| parseHeader | back to summary |
|---|---|
| public void parseHeader(InputStream is) throws IOException Parse a MIME header from an input stream. | |
| prepend | back to summary |
|---|---|
| public synchronized void prepend(String k, String v) Prepends a key value pair to the beginning of the header. Duplicates are allowed | |
| back to summary | |
|---|---|
| public void print(PrintStream p) Prints the key-value pairs represented by this header. Also prints the RFC required blank line at the end. Omits pairs with a null key. Omits colon if key-value pair is the requestline. | |
| back to summary | |
|---|---|
| private static void print(int nkeys, String[] keys, String[] values, PrintStream p) Prints the key-value pairs represented by this header. Also prints the RFC required blank line at the end. Omits pairs with a null key. Omits colon if key-value pair is the requestline. | |
| remove | back to summary |
|---|---|
| public synchronized void remove(String k) Remove the key from the header. If there are multiple values under the same key, they are all removed. Nothing is done if the key doesn't exist. After a remove, the other pairs' order are not changed.
| |
| reset | back to summary |
|---|---|
| public synchronized void reset() Reset a message header (all key/values removed) | |
| set | back to summary |
|---|---|
| public synchronized void set(int i, String k, String v) Overwrite the previous key/val pair at location 'i' with the new k/v. If the index didn't exist before the key/val is simply tacked onto the end. | |
| set | back to summary |
|---|---|
| public synchronized void set(String k, String v) Sets the value of a key. If the key already exists in the header, it's value will be changed. Otherwise a new key/value pair will be added to the end of the header. | |
| setIfNotSet | back to summary |
|---|---|
| public synchronized void setIfNotSet(String k, String v) Set's the value of a key only if there is no key with that value already. | |
| toString | back to summary |
|---|---|
| public synchronized String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| pack-priv int | |
| pack-priv String | |
| pack-priv Object | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public String | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| haveNext | back to summary |
|---|---|
| pack-priv boolean haveNext | |
| index | back to summary |
|---|---|
| pack-priv int index | |
| key | back to summary |
|---|---|
| pack-priv String key | |
| lock | back to summary |
|---|---|
| pack-priv Object lock | |
| next | back to summary |
|---|---|
| pack-priv int next | |
| HeaderIterator | back to summary |
|---|---|
| public HeaderIterator(String k, Object lock) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns | |
| next | back to summary |
|---|---|
| public String next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the | |