Package io.micronaut.jaxrs.common
Class JaxRsHttpHeaders
java.lang.Object
io.micronaut.jaxrs.common.JaxRsHttpHeaders
- All Implemented Interfaces:
HttpHeaders
- Direct Known Subclasses:
JaxRsMutableHttpHeaders
@Internal
public sealed class JaxRsHttpHeaders
extends Object
implements HttpHeaders
permits JaxRsMutableHttpHeaders
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 TypeMethodDescriptionfinal boolean
containsHeaderString
(String name, String valueSeparatorRegex, Predicate<String> valuePredicate) final boolean
containsHeaderString
(String name, Predicate<String> valuePredicate) static JaxRsHttpHeaders
forRequest
(HttpHeaders httpHeaders) Create headers for a request.static JaxRsHttpHeaders
forResponse
(HttpHeaders httpHeaders) Create headers for a response.getDate()
getHeaderString
(String name) int
getRequestHeader
(String name)
-
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
-
getRequestHeader
- Specified by:
getRequestHeader
in interfaceHttpHeaders
-
getHeaderString
- Specified by:
getHeaderString
in interfaceHttpHeaders
-
containsHeaderString
-
containsHeaderString
-
getRequestHeaders
- Specified by:
getRequestHeaders
in interfaceHttpHeaders
-
getAcceptableMediaTypes
- Specified by:
getAcceptableMediaTypes
in interfaceHttpHeaders
-
getAcceptableLanguages
- Specified by:
getAcceptableLanguages
in interfaceHttpHeaders
-
getMediaType
- Specified by:
getMediaType
in interfaceHttpHeaders
-
getLanguage
- Specified by:
getLanguage
in interfaceHttpHeaders
-
getCookies
- Specified by:
getCookies
in interfaceHttpHeaders
-
getDate
- Specified by:
getDate
in interfaceHttpHeaders
-
getLength
public int getLength()- Specified by:
getLength
in interfaceHttpHeaders
-