B - The response type@Internal public class FullNettyClientHttpResponse<B> extends Object implements HttpResponse<B>, Completable
FullHttpResponse for consumption by the HttpClient.| Modifier and Type | Method and Description |
|---|---|
MutableConvertibleValues<Object> |
getAttributes()
A
MutableConvertibleValues of the attributes for this HTTP message. |
Optional<B> |
getBody() |
<T> Optional<T> |
getBody(Argument<T> type)
Return the body as the given type.
|
<T> Optional<T> |
getBody(Class<T> type)
Return the body as the given type.
|
HttpHeaders |
getHeaders() |
io.netty.handler.codec.http.FullHttpResponse |
getNativeResponse() |
HttpStatus |
getStatus() |
void |
onComplete()
* Successful terminal state.
|
String |
reason() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccepted, accepted, badRequest, badRequest, body, code, created, created, created, header, noContent, notAllowed, notAllowed, notFound, notFound, notModified, ok, ok, permanentRedirect, redirect, seeOther, serverError, serverError, setAttribute, status, status, status, temporaryRedirect, unauthorized, unprocessableEntity, urigetCharacterEncoding, getContentLength, getContentType, getLocaleremoveAttributegetAttribute, getAttributepublic String reason()
reason in interface HttpResponse<B>public HttpStatus getStatus()
getStatus in interface HttpResponse<B>public HttpHeaders getHeaders()
getHeaders in interface HttpMessage<B>HttpHeaders objectpublic MutableConvertibleValues<Object> getAttributes()
HttpMessageA MutableConvertibleValues of the attributes for this HTTP message.
Attributes are designed for internal data sharing and hence are isolated from headers and parameters which are client supplied
getAttributes in interface AttributeHoldergetAttributes in interface MutableAttributeHoldergetAttributes in interface HttpMessage<B>public Optional<B> getBody()
getBody in interface HttpMessage<B>public <T> Optional<T> getBody(Class<T> type)
HttpMessagegetBody in interface HttpMessage<B>T - The generic typetype - The type of the bodyOptional of the type or Optional.empty() if the body cannot be returned as the given typepublic io.netty.handler.codec.http.FullHttpResponse getNativeResponse()
public <T> Optional<T> getBody(Argument<T> type)
HttpMessagegetBody in interface HttpMessage<B>T - The generic typetype - The type of the bodyOptional of the type or Optional.empty() if the body cannot be returned as the given typepublic void onComplete()
CompletableonComplete in interface CompletableSubscriber.onComplete()