public class Headers extends Object implements Map<String,List<String>>
Snoracle, do you think you could add something like this to JDK 11g? Or did you kick out the guy who knows how HTTP works so Larry can get his new jet filled up?
TODO: This is just a case-insensitive multi-valued map of strings...
| Constructor and Description |
|---|
Headers() |
Headers(boolean normalizeHeaders) |
Headers(ByteArrayInputStream inputStream) |
Headers(Map<String,List<String>> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
String value) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,List<String>>> |
entrySet() |
boolean |
equals(Object o) |
protected int |
findEndOfString(String sb) |
protected int |
findNonWhitespace(String sb,
int offset) |
List<String> |
get(Object key) |
String |
getFirstHeader(String key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
List<String> |
put(String key,
List<String> value) |
void |
putAll(Map<? extends String,? extends List<String>> t) |
static String |
readLine(ByteArrayInputStream is) |
static String |
readLine(StringBuilder sb,
ByteArrayInputStream is) |
List<String> |
remove(Object key) |
void |
set(String key,
String value) |
int |
size() |
protected String[] |
splitHeader(String sb) |
String |
toString() |
Collection<List<String>> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Headers()
public Headers(ByteArrayInputStream inputStream)
public Headers(boolean normalizeHeaders)
public boolean containsKey(Object key)
containsKey in interface Map<String,List<String>>public boolean containsValue(Object value)
containsValue in interface Map<String,List<String>>public Collection<List<String>> values()
public boolean equals(Object o)
public int hashCode()
public static String readLine(ByteArrayInputStream is)
public static String readLine(StringBuilder sb, ByteArrayInputStream is)
protected int findNonWhitespace(String sb, int offset)
protected int findEndOfString(String sb)
Copyright © 2023 jUPnP.org. All rights reserved.