public final class HeaderMap extends Object implements Iterable<HeaderValues>
Constructor and Description |
---|
HeaderMap() |
Modifier and Type | Method and Description |
---|---|
HeaderMap | add(HttpString headerName, long headerValue) |
HeaderMap | add(HttpString headerName, String headerValue) |
HeaderMap | addAll(HttpString headerName, Collection<String> headerValues) |
HeaderMap | addFirst(HttpString headerName, String headerValue) |
HeaderMap | addLast(HttpString headerName, String headerValue) |
HeaderMap | clear() |
boolean | contains(HttpString headerName) |
boolean | contains(String headerName) |
int | count(HttpString headerName) |
int | count(String headerName) |
Iterable<String> | eachValue(HttpString headerName) |
boolean | equals(Object o) |
long | fastIterate() Do a fast iteration of this header map without creating any objects. |
long | fastIterateNonEmpty() Do a fast iteration of this header map without creating any objects, only considering non-empty header values. |
HeaderValues | fiCurrent(long cookie) Return the value at the current index in a fast iteration. |
long | fiNext(long cookie) Find the next index in a fast iteration. |
long | fiNextNonEmpty(long cookie) Find the next non-empty index in a fast iteration. |
HeaderValues | get(HttpString headerName) |
String | get(HttpString headerName, int index) |
HeaderValues | get(String headerName) |
String | get(String headerName, int index) |
String | getFirst(HttpString headerName) |
String | getFirst(String headerName) |
Collection<HttpString> | getHeaderNames() |
String | getLast(HttpString headerName) |
String | getLast(String headerName) |
int | hashCode() |
Iterator<HeaderValues> | iterator() |
HeaderMap | put(HttpString headerName, long headerValue) |
HeaderMap | put(HttpString headerName, String headerValue) |
HeaderMap | putAll(HttpString headerName, Collection<String> headerValues) |
Collection<String> | remove(HttpString headerName) |
Collection<String> | remove(String headerName) |
int | size() |
String | toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public HeaderValues get(HttpString headerName)
public HeaderValues get(String headerName)
public String getFirst(HttpString headerName)
public String get(HttpString headerName, int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public String get(String headerName, int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException
public String getLast(HttpString headerName)
public int count(HttpString headerName)
public int count(String headerName)
public int size()
public long fastIterate()
fiNext(long)
, fiCurrent(long)
public long fastIterateNonEmpty()
public long fiNext(long cookie)
cookie
- the previous cookie valuepublic long fiNextNonEmpty(long cookie)
cookie
- the previous cookie valuepublic HeaderValues fiCurrent(long cookie)
cookie
- the iteration cookie valueNoSuchElementException
- if the cookie value is invalidpublic Iterable<String> eachValue(HttpString headerName)
public Iterator<HeaderValues> iterator()
iterator
in interface Iterable<HeaderValues>
public Collection<HttpString> getHeaderNames()
public HeaderMap add(HttpString headerName, String headerValue)
public HeaderMap addFirst(HttpString headerName, String headerValue)
public HeaderMap addLast(HttpString headerName, String headerValue)
public HeaderMap add(HttpString headerName, long headerValue)
public HeaderMap addAll(HttpString headerName, Collection<String> headerValues)
public HeaderMap put(HttpString headerName, String headerValue)
public HeaderMap put(HttpString headerName, long headerValue)
public HeaderMap putAll(HttpString headerName, Collection<String> headerValues)
public HeaderMap clear()
public Collection<String> remove(HttpString headerName)
public Collection<String> remove(String headerName)
public boolean contains(HttpString headerName)
public boolean contains(String headerName)
Copyright © 2020 JBoss by Red Hat. All rights reserved.