ReactorClientHttpConnector
@Deprecated class Netty4ClientHttpResponse extends AbstractClientHttpResponse
ClientHttpResponse
implementation based on Netty 4.Modifier and Type | Field and Description |
---|---|
private ByteBufInputStream |
body
Deprecated.
|
private ChannelHandlerContext |
context
Deprecated.
|
private HttpHeaders |
headers
Deprecated.
|
private FullHttpResponse |
nettyResponse
Deprecated.
|
Constructor and Description |
---|
Netty4ClientHttpResponse(ChannelHandlerContext context,
FullHttpResponse nettyResponse)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Close this response, freeing any resources created.
|
java.io.InputStream |
getBody()
Deprecated.
Return the body of the message as an input stream.
|
HttpHeaders |
getHeaders()
Deprecated.
Return the headers of this message.
|
int |
getRawStatusCode()
Deprecated.
Return the HTTP status code (potentially non-standard and not
resolvable through the
HttpStatus enum) as an integer. |
java.lang.String |
getStatusText()
Deprecated.
Return the HTTP status text of the response.
|
getStatusCode
private final ChannelHandlerContext context
private final FullHttpResponse nettyResponse
private final ByteBufInputStream body
@Nullable private volatile HttpHeaders headers
public Netty4ClientHttpResponse(ChannelHandlerContext context, FullHttpResponse nettyResponse)
public int getRawStatusCode() throws java.io.IOException
ClientHttpResponse
HttpStatus
enum) as an integer.java.io.IOException
- in case of I/O errorsClientHttpResponse.getStatusCode()
,
HttpStatus.resolve(int)
public java.lang.String getStatusText() throws java.io.IOException
ClientHttpResponse
java.io.IOException
- in case of I/O errorspublic HttpHeaders getHeaders()
HttpMessage
null
)public java.io.InputStream getBody() throws java.io.IOException
HttpInputMessage
null
)java.io.IOException
- in case of I/O errorspublic void close()
ClientHttpResponse