private class ServletServerHttpResponse.ServletResponseHttpHeaders extends HttpHeaders
The intent is merely to expose what is available through the HttpServletResponse i.e. the ability to look up specific header values by name. All other map-related operations (e.g. iteration, removal, etc) apply only to values added directly through HttpHeaders methods.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
private |
ServletResponseHttpHeaders() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
get(java.lang.Object key) |
java.lang.String |
getFirst(java.lang.String headerName)
Return the first header value for the given header name, if any.
|
add, clear, containsKey, containsValue, entrySet, equals, getAccept, getAcceptCharset, getAllow, getCacheControl, getConnection, getContentLength, getContentType, getDate, getETag, getExpires, getFirstDate, getFirstValueAsList, getIfModifiedSince, getIfNoneMatch, getIfNotModifiedSince, getLastModified, getLocation, getOrigin, getPragma, getUpgrade, hashCode, isEmpty, keySet, put, putAll, readOnlyHttpHeaders, remove, set, setAccept, setAcceptCharset, setAll, setAllow, setCacheControl, setConnection, setConnection, setContentDispositionFormData, setContentLength, setContentType, setDate, setDate, setETag, setExpires, setIfModifiedSince, setIfNoneMatch, setIfNoneMatch, setLastModified, setLocation, setOrigin, setPragma, setUpgrade, size, toCommaDelimitedString, toSingleValueMap, toString, values
private static final long serialVersionUID
public java.lang.String getFirst(java.lang.String headerName)
HttpHeaders
getFirst
in interface MultiValueMap<java.lang.String,java.lang.String>
getFirst
in class HttpHeaders
headerName
- the header namenull
public java.util.List<java.lang.String> get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,java.util.List<java.lang.String>>
get
in class HttpHeaders