ResultType - The result to return.DeserializedType - The deserialize type for serializer.public interface IStatefulResponseHandler<ResultType,DeserializedType>
| Modifier and Type | Method and Description |
|---|---|
void |
configConnection(IConnection connection)
Configure the connection before get response.
|
ResultType |
generateResult(IHttpRequest request,
IConnection connection,
ISerializer serializer,
ILogger logger)
Generate result after receiving response.
|
void configConnection(IConnection connection)
connection - The http connection.ResultType generateResult(IHttpRequest request, IConnection connection, ISerializer serializer, ILogger logger) throws java.lang.Exception
request - The http request.connection - The http connection.serializer - The serializer for parsing response.logger - The looger.java.lang.Exception - An exception occurs if the request was unable to complete for any reason.