| java.lang.Object org.apache.http.message.BasicHeaderIterator
Method Summary | |
protected boolean | filterHeader(int index) Checks whether a header is part of the iteration. | protected int | findNext(int from) Determines the index of the next header. | public boolean | hasNext() | final public Object | next() Returns the next header. | public Header | nextHeader() Obtains the next header from this iteration. | public void | remove() Removing headers is not supported. |
allHeaders | final protected Header[] allHeaders(Code) | | An array of headers to iterate over.
Not all elements of this array are necessarily part of the iteration.
This array will never be modified by the iterator.
Derived implementations are expected to adhere to this restriction.
|
headerName | protected String headerName(Code) | | The header name to filter by.
null to iterate over all headers in the array.
|
BasicHeaderIterator | public BasicHeaderIterator(Header[] headers, String name)(Code) | | Creates a new header iterator.
Parameters: headers - an array of headers over which to iterate Parameters: name - the name of the headers over which to iterate, ornull for any |
filterHeader | protected boolean filterHeader(int index)(Code) | | Checks whether a header is part of the iteration.
Parameters: index - the index of the header to check true if the header should be part of theiteration, false to skip |
findNext | protected int findNext(int from)(Code) | | Determines the index of the next header.
Parameters: from - one less than the index to consider first,-1 to search for the first header the index of the next header that matches the filter name,or negative if there are no more headers |
hasNext | public boolean hasNext()(Code) | | |
|
|