Package io.micronaut.jaxrs.common
Class JaxRsMutableHttpHeaders
java.lang.Object
io.micronaut.jaxrs.common.JaxRsHttpHeaders
io.micronaut.jaxrs.common.JaxRsMutableHttpHeaders
- All Implemented Interfaces:
HttpHeaders
Adapter class for JAR-RS headers.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface jakarta.ws.rs.core.HttpHeaders
ACCEPT, ACCEPT_CHARSET, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALLOW, AUTHORIZATION, CACHE_CONTROL, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_ID, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_TYPE, COOKIE, DATE, ETAG, EXPECT, EXPIRES, HOST, IF_MATCH, IF_MODIFIED_SINCE, IF_NONE_MATCH, IF_UNMODIFIED_SINCE, LAST_EVENT_ID_HEADER, LAST_MODIFIED, LINK, LOCATION, RETRY_AFTER, SET_COOKIE, USER_AGENT, VARY, WWW_AUTHENTICATE
-
Method Summary
Modifier and TypeMethodDescriptionstatic JaxRsMutableHttpHeaders
forRequest
(MutableHttpHeaders httpHeaders) Create headers for a request.static JaxRsMutableHttpHeaders
forResponse
(MutableHttpHeaders httpHeaders) Create headers for a response.Methods inherited from class io.micronaut.jaxrs.common.JaxRsHttpHeaders
containsHeaderString, containsHeaderString, forRequest, forResponse, getAcceptableLanguages, getAcceptableMediaTypes, getCookies, getDate, getHeaderString, getLanguage, getLength, getMediaType, getRequestHeader
-
Method Details
-
forRequest
Create headers for a request.- Parameters:
httpHeaders
- The headers- Returns:
- The headers
-
forResponse
Create headers for a response.- Parameters:
httpHeaders
- The headers- Returns:
- The headers
-
getRequestHeaders
- Specified by:
getRequestHeaders
in interfaceHttpHeaders
- Overrides:
getRequestHeaders
in classJaxRsHttpHeaders
-