Modifier and Type | Method and Description |
---|---|
static <K,V> List<String> |
getAllAsString(Headers<K,V,?> headers,
K name)
|
static <K,V> String |
getAsString(Headers<K,V,?> headers,
K 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,CharSequence,?> headers)
|
public static <K,V> String getAsString(Headers<K,V,?> headers, K 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)
public static Set<String> namesAsString(Headers<CharSequence,CharSequence,?> headers)
Copyright © 2008–2017 The Netty Project. All rights reserved.