public class AsyncMonitorResponseHandler extends java.lang.Object implements IStatefulResponseHandler<AsyncOperationStatus,java.lang.String>
| Constructor and Description |
|---|
AsyncMonitorResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
configConnection(IConnection connection)
Configure the connection before get response.
|
AsyncOperationStatus |
generateResult(IHttpRequest request,
IConnection connection,
ISerializer serializer,
ILogger logger)
Generate the async operation result based on server response.
|
public void configConnection(IConnection connection)
configConnection in interface IStatefulResponseHandler<AsyncOperationStatus,java.lang.String>connection - The http connection.public AsyncOperationStatus generateResult(IHttpRequest request, IConnection connection, ISerializer serializer, ILogger logger) throws java.lang.Exception
generateResult in interface IStatefulResponseHandler<AsyncOperationStatus,java.lang.String>request - The http request.connection - The http connection.serializer - The serializer.logger - The logger.java.lang.Exception - An exception occurs if the request was unable to complete for any reason.