ContentCachingClientHttpResponsepublic class CustomClientHttpResponse
extends org.springframework.http.client.AbstractClientHttpResponse
ClientHttpResponse| Constructor | Description |
|---|---|
CustomClientHttpResponse() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
java.io.InputStream |
getBody() |
|
java.lang.String |
getBodyAsString() |
HttpInputMessage.getBody() as string |
java.lang.String |
getBodyAsString(java.nio.charset.Charset charset) |
HttpInputMessage.getBody() as string |
org.springframework.http.HttpHeaders |
getHeaders() |
|
java.lang.String |
getHttpVersion() |
Get HTTP version
|
int |
getRawStatusCode() |
|
java.lang.String |
getStatusLine() |
Get status line
|
java.lang.String |
getStatusText() |
public java.lang.String getStatusLine()
throws java.io.IOException
java.io.IOException - if failed to getpublic java.lang.String getHttpVersion()
throws java.io.IOException
java.io.IOException - if failed to getpublic int getRawStatusCode()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getStatusText()
throws java.io.IOException
java.io.IOExceptionpublic org.springframework.http.HttpHeaders getHeaders()
public java.io.InputStream getBody()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getBodyAsString()
throws java.io.IOException
HttpInputMessage.getBody() as stringjava.io.IOException - if failed to getpublic java.lang.String getBodyAsString(java.nio.charset.Charset charset)
throws java.io.IOException
HttpInputMessage.getBody() as stringcharset - Charsetjava.io.IOException - if failed to getpublic void close()
Copyright © 2017–2018 SPT. All rights reserved.