| Modifier and Type | Method and Description |
|---|---|
static <T> List<String> |
getAllAsString(Headers<T> headers,
T name)
|
static <T> String |
getAsString(Headers<T> headers,
T name)
Headers.get(Object) and convert the result to a String. |
static Iterator<Map.Entry<String,String>> |
iteratorAsString(Iterable<Map.Entry<CharSequence,CharSequence>> headers)
|
static Set<String> |
namesAsString(Headers<CharSequence> headers)
|
public static <T> String getAsString(Headers<T> headers, T name)
Headers.get(Object) and convert the result to a String.headers - the headers to get the name fromname - the name of the header to retrievenull if there's no such entry.public static Iterator<Map.Entry<String,String>> iteratorAsString(Iterable<Map.Entry<CharSequence,CharSequence>> headers)
Copyright © 2008–2015 The Netty Project. All rights reserved.