public final class ResponseConverterUtils
extends java.lang.Object
ResponseConverter
.ResponseConverter
Modifier and Type | Method and Description |
---|---|
static <T> ResponseConverter<T> |
getGenericObject(java.lang.reflect.Type type,
java.lang.String property)
Creates a generic
ResponseConverter for a generic class. |
static ResponseConverter<java.io.InputStream> |
getInputStream()
Creates an
InputStream converter. |
static <T extends ObjectModel> |
getObject(java.lang.Class<? extends T> type)
Creates a generic
ResponseConverter for a POJO class. |
static ResponseConverter<java.lang.String> |
getString()
Creates a generic
ResponseConverter for a String response. |
static ResponseConverter<java.lang.Void> |
getVoid()
Gets the void converter.
|
public static <T> ResponseConverter<T> getGenericObject(java.lang.reflect.Type type, java.lang.String property)
ResponseConverter
for a generic class.T
- the generic typetype
- the typeproperty
- the propertypublic static ResponseConverter<java.io.InputStream> getInputStream()
InputStream
converter.public static <T extends ObjectModel> ResponseConverter<T> getObject(java.lang.Class<? extends T> type)
T
- the generic typetype
- the typepublic static ResponseConverter<java.lang.String> getString()
ResponseConverter
for a String response.public static ResponseConverter<java.lang.Void> getVoid()