/** * {@link Headers#get(Object)} and convert the result to a {@link String}. * @param headers the headers to get the {@code name} from * @param name the name of the header to retrieve * @return the first header value if the header is found. {@code null} if there's no such entry. */ public static <K, V> String getAsString(Headers<K, V, ?> headers, K name) { V orig = headers.get(name); return orig != null ? orig.toString() : null; }
/** * {@link Headers#get(Object)} and convert the result to a {@link String}. * @param headers the headers to get the {@code name} from * @param name the name of the header to retrieve * @return the first header value if the header is found. {@code null} if there's no such entry. */ public static <K, V> String getAsString(Headers<K, V, ?> headers, K name) { V orig = headers.get(name); return orig != null ? orig.toString() : null; }
/** * {@link Headers#get(Object)} and convert the result to a {@link String}. * @param headers the headers to get the {@code name} from * @param name the name of the header to retrieve * @return the first header value if the header is found. {@code null} if there's no such entry. */ public static <K, V> String getAsString(Headers<K, V, ?> headers, K name) { V orig = headers.get(name); return orig != null ? orig.toString() : null; }
/** * {@link Headers#get(Object)} and convert the result to a {@link String}. * @param headers the headers to get the {@code name} from * @param name the name of the header to retrieve * @return the first header value if the header is found. {@code null} if there's no such entry. */ public static <K, V> String getAsString(Headers<K, V, ?> headers, K name) { V orig = headers.get(name); return orig != null ? orig.toString() : null; }
/** * {@link Headers#get(Object)} and convert the result to a {@link String}. * @param headers the headers to get the {@code name} from * @param name the name of the header to retrieve * @return the first header value if the header is found. {@code null} if there's no such entry. */ public static <K, V> String getAsString(Headers<K, V, ?> headers, K name) { V orig = headers.get(name); return orig != null ? orig.toString() : null; }
/** * {@link Headers#get(Object)} and convert the result to a {@link String}. * @param headers the headers to get the {@code name} from * @param name the name of the header to retrieve * @return the first header value if the header is found. {@code null} if there's no such entry. */ public static <K, V> String getAsString(Headers<K, V, ?> headers, K name) { V orig = headers.get(name); return orig != null ? orig.toString() : null; }
/** * {@link Headers#get(Object)} and convert the result to a {@link String}. * @param headers the headers to get the {@code name} from * @param name the name of the header to retrieve * @return the first header value if the header is found. {@code null} if there's no such entry. */ public static <K, V> String getAsString(Headers<K, V, ?> headers, K name) { V orig = headers.get(name); return orig != null ? orig.toString() : null; }