Class WrappedClientHttpResponse
- java.lang.Object
-
- de.hybris.platform.outboundservices.monitoring.WrappedClientHttpResponse
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.springframework.http.client.ClientHttpResponse,org.springframework.http.HttpInputMessage,org.springframework.http.HttpMessage
- Direct Known Subclasses:
DefaultOutboundRequestResponseInterceptor.WrappedClientHttpResponse
public class WrappedClientHttpResponse extends java.lang.Object implements org.springframework.http.client.ClientHttpResponse
-
-
Constructor Summary
Constructors Constructor Description WrappedClientHttpResponse(org.springframework.http.client.ClientHttpResponse clientHttpResponse, int sizeLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.io.InputStreamgetBody()org.springframework.http.HttpHeadersgetHeaders()intgetRawStatusCode()org.springframework.http.HttpStatusgetStatusCode()java.lang.StringgetStatusText()
-
-
-
Method Detail
-
getStatusCode
public org.springframework.http.HttpStatus getStatusCode() throws java.io.IOException- Specified by:
getStatusCodein interfaceorg.springframework.http.client.ClientHttpResponse- Throws:
java.io.IOException
-
getRawStatusCode
public int getRawStatusCode() throws java.io.IOException- Specified by:
getRawStatusCodein interfaceorg.springframework.http.client.ClientHttpResponse- Throws:
java.io.IOException
-
getStatusText
public java.lang.String getStatusText() throws java.io.IOException- Specified by:
getStatusTextin interfaceorg.springframework.http.client.ClientHttpResponse- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceorg.springframework.http.client.ClientHttpResponse- Specified by:
closein interfacejava.io.Closeable
-
getBody
public java.io.InputStream getBody() throws java.io.IOException- Specified by:
getBodyin interfaceorg.springframework.http.HttpInputMessage- Throws:
java.io.IOException
-
getHeaders
public org.springframework.http.HttpHeaders getHeaders()
- Specified by:
getHeadersin interfaceorg.springframework.http.HttpMessage
-
-