@UnstableApi @FunctionalInterface public interface ResponseConverterFunctionProvider
ResponseConverterFunction provider interface which creates a new
ResponseConverterFunction for converting an object of the given type and functions.| Modifier and Type | Method and Description |
|---|---|
ResponseConverterFunction |
createResponseConverterFunction(Type responseType,
ResponseConverterFunction responseConverter,
ExceptionHandlerFunction exceptionHandler)
Returns a
ResponseConverterFunction instance if there is a function which can convert
the responseType, otherwise return null. |
ResponseConverterFunction createResponseConverterFunction(Type responseType, ResponseConverterFunction responseConverter, ExceptionHandlerFunction exceptionHandler)
ResponseConverterFunction instance if there is a function which can convert
the responseType, otherwise return null. The responseConverter
and exceptionHandler are originally configured ResponseConverterFunction
and ExceptionHandlerFunction which would be used if this provider returns null.responseType - the return Type of the annotated HTTP service methodresponseConverter - the ResponseConverterFunction which converts an object
into an HttpResponseexceptionHandler - the ExceptionHandlerFunction which converts a Throwable
into an HttpResponseCopyright © 2020 LeanCloud. All rights reserved.