public class StandardHttpHeaders extends Object implements HttpHeaders
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_LENGTH |
static String |
CONTENT_TYPE |
static String |
EXPECT |
static String |
EXPECT_CONTINUE |
static String |
PROXY_AUTHORIZATION |
static String |
RETRY_AFTER |
| Constructor and Description |
|---|
StandardHttpHeaders() |
StandardHttpHeaders(Map<String,List<String>> headers) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,List<String>> |
headers()
Returns a Map containing a list of String values for each Header.
|
List<String> |
headers(String key)
Returns a List of all the Header String values for the provided key/name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitheaderpublic static final String CONTENT_TYPE
public static final String CONTENT_LENGTH
public static final String EXPECT
public static final String EXPECT_CONTINUE
public static final String RETRY_AFTER
public static final String PROXY_AUTHORIZATION
public List<String> headers(String key)
HttpHeadersheaders in interface HttpHeaderskey - The header key/name for which to provide the values.public Map<String,List<String>> headers()
HttpHeadersheaders in interface HttpHeadersCopyright © 2015–2024 Red Hat. All rights reserved.