Package io.micronaut.jaxrs.client
Class JaxRsClientResponseContext
java.lang.Object
io.micronaut.jaxrs.client.JaxRsClientResponseContext
- All Implemented Interfaces:
ClientResponseContext
@Internal
public final class JaxRsClientResponseContext
extends Object
implements ClientResponseContext
The implementation of
ClientResponseContext
.- Since:
- 4.6
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsHeaderString
(String name, String valueSeparatorRegex, Predicate<String> valuePredicate) boolean
containsHeaderString
(String name, Predicate<String> valuePredicate) getDate()
getHeaderString
(String name) int
getLinkBuilder
(String relation) getLinks()
int
boolean
boolean
void
setEntityStream
(InputStream input) void
setStatus
(int code) void
setStatusInfo
(Response.StatusType statusInfo)
-
Method Details
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceClientResponseContext
-
setStatus
public void setStatus(int code) - Specified by:
setStatus
in interfaceClientResponseContext
-
getStatusInfo
- Specified by:
getStatusInfo
in interfaceClientResponseContext
-
setStatusInfo
- Specified by:
setStatusInfo
in interfaceClientResponseContext
-
getHeaders
- Specified by:
getHeaders
in interfaceClientResponseContext
-
getHeaderString
- Specified by:
getHeaderString
in interfaceClientResponseContext
-
containsHeaderString
-
containsHeaderString
-
getAllowedMethods
- Specified by:
getAllowedMethods
in interfaceClientResponseContext
-
getDate
- Specified by:
getDate
in interfaceClientResponseContext
-
getLanguage
- Specified by:
getLanguage
in interfaceClientResponseContext
-
getLength
public int getLength()- Specified by:
getLength
in interfaceClientResponseContext
-
getMediaType
- Specified by:
getMediaType
in interfaceClientResponseContext
-
getCookies
- Specified by:
getCookies
in interfaceClientResponseContext
-
getEntityTag
- Specified by:
getEntityTag
in interfaceClientResponseContext
-
getLastModified
- Specified by:
getLastModified
in interfaceClientResponseContext
-
getLocation
- Specified by:
getLocation
in interfaceClientResponseContext
-
getLinks
- Specified by:
getLinks
in interfaceClientResponseContext
-
hasLink
- Specified by:
hasLink
in interfaceClientResponseContext
-
getLink
- Specified by:
getLink
in interfaceClientResponseContext
-
getLinkBuilder
- Specified by:
getLinkBuilder
in interfaceClientResponseContext
-
hasEntity
public boolean hasEntity()- Specified by:
hasEntity
in interfaceClientResponseContext
-
getEntityStream
- Specified by:
getEntityStream
in interfaceClientResponseContext
-
setEntityStream
- Specified by:
setEntityStream
in interfaceClientResponseContext
-