org.apache.tomcat.util.collections
public class MultiMap extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected org.apache.tomcat.util.collections.MultiMap.Field[] |
fields |
Constructor and Description |
---|
MultiMap(int initial_size) |
Modifier and Type | Method and Description |
---|---|
int |
addField()
Create a new, unitialized entry.
|
int |
find(java.lang.String name,
int starting)
Find the index of a field with the given name.
|
int |
findFirst(java.lang.String name) |
int |
findIgnoreCase(java.lang.String name,
int starting)
Find the index of a field with the given name.
|
int |
findNext(int startPos) |
MessageBytes |
get(java.lang.String name) |
MessageBytes |
getName(int n)
Returns the Nth header name
This may be used to iterate through all header fields.
|
MessageBytes |
getValue(int n)
Returns the Nth header value
This may be used to iterate through all header fields.
|
void |
recycle()
Clears all header fields.
|
void |
remove(int i)
Removes the field at the specified position.
|
int |
size()
Returns the current number of header fields.
|
protected org.apache.tomcat.util.collections.MultiMap.Field[] fields
protected int count
public void recycle()
public int size()
public MessageBytes getName(int n)
public MessageBytes getValue(int n)
public int find(java.lang.String name, int starting)
public int findIgnoreCase(java.lang.String name, int starting)
public void remove(int i)
public int addField()
public MessageBytes get(java.lang.String name)
public int findFirst(java.lang.String name)
public int findNext(int startPos)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.