ResultType - the result to returnDeserializedType - the deserialize type for serializerpublic interface IStatefulResponseHandler<ResultType,DeserializedType>
| Modifier and Type | Method and Description |
|---|---|
void |
configConnection(IConnection connection)
Configure the connection before get response
|
void |
configConnection(okhttp3.Response response)
Configure the response
|
ResultType |
generateResult(IHttpRequest request,
IConnection connection,
ISerializer serializer,
ILogger logger)
Generate result after receiving response
|
ResultType |
generateResult(IHttpRequest request,
okhttp3.Response response,
ISerializer serializer,
ILogger logger)
Generate result after receiving response
|
void configConnection(IConnection connection)
connection - the HTTP connectionvoid configConnection(okhttp3.Response response)
response - the HTTP responseResultType generateResult(IHttpRequest request, IConnection connection, ISerializer serializer, ILogger logger) throws java.lang.Exception
request - the HTTP requestconnection - the HTTP connectionserializer - the serializer for parsing responselogger - the loggerjava.lang.Exception - an exception occurs if the request was unable to complete for any reasonResultType generateResult(IHttpRequest request, okhttp3.Response response, ISerializer serializer, ILogger logger) throws java.lang.Exception
request - the HTTP requestresponse - the HTTP connectionserializer - the serializer for parsing responselogger - the loggerjava.lang.Exception - an exception occurs if the request was unable to complete for any reason