Class ClientHttpResponseLogWrapper
- java.lang.Object
-
- net.dreamlu.mica.java11.rest.logger.ClientHttpResponseLogWrapper
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.springframework.http.client.ClientHttpResponse,org.springframework.http.HttpInputMessage,org.springframework.http.HttpMessage
public class ClientHttpResponseLogWrapper extends Object implements org.springframework.http.client.ClientHttpResponse
ClientHttpResponse log wapper- Author:
- L.cm
-
-
Constructor Summary
Constructors Constructor Description ClientHttpResponseLogWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()InputStreamgetBody()org.springframework.http.HttpHeadersgetHeaders()intgetRawStatusCode()org.springframework.http.HttpStatusgetStatusCode()StringgetStatusText()
-
-
-
Method Detail
-
getStatusCode
public org.springframework.http.HttpStatus getStatusCode() throws IOException- Specified by:
getStatusCodein interfaceorg.springframework.http.client.ClientHttpResponse- Throws:
IOException
-
getRawStatusCode
public int getRawStatusCode() throws IOException- Specified by:
getRawStatusCodein interfaceorg.springframework.http.client.ClientHttpResponse- Throws:
IOException
-
getStatusText
public String getStatusText() throws IOException
- Specified by:
getStatusTextin interfaceorg.springframework.http.client.ClientHttpResponse- Throws:
IOException
-
getHeaders
public org.springframework.http.HttpHeaders getHeaders()
- Specified by:
getHeadersin interfaceorg.springframework.http.HttpMessage
-
getBody
public InputStream getBody() throws IOException
- Specified by:
getBodyin interfaceorg.springframework.http.HttpInputMessage- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.springframework.http.client.ClientHttpResponse- Specified by:
closein interfaceCloseable
-
-