public interface ResponseBodyReadableContext
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Tells the length of the content, if known.
|
org.apache.http.entity.ContentType |
getContentType() |
Type |
getGenericType() |
default int |
getStatusCode() |
org.apache.http.StatusLine |
getStatusLine() |
Class<?> |
getType() |
boolean |
hasEntity() |
org.apache.http.entity.ContentType getContentType()
long getContentLength()
Long.MAX_VALUE,
a negative number is returned.Class<?> getType()
E.g. if given TypeReference for converting is new TypeReference<Map<String, String>>(){}
then this will return
interface java.util.Map
Type getGenericType()
new TypeReference<Map<String, String>>(){}
then this will return
java.util.Map<java.lang.String, java.lang.String>
org.apache.http.StatusLine getStatusLine()
boolean hasEntity()
true if response has entity otherwise falsedefault int getStatusCode()
Copyright © 2021. All rights reserved.