public class HttpConnect extends Object
构造器和说明 |
---|
HttpConnect(ClientConfiguration config) |
限定符和类型 | 方法和说明 |
---|---|
<T> Response<T> |
execute(Request<?> request,
HttpResponseHandler<SCSWebServiceResponse<T>> responseHandler,
HttpResponseHandler<SCSServiceException> errorResponseHandler,
ExecutionContext executionContext)
Executes the request and returns the result.
|
protected void |
finalize() |
void |
shutdown()
Shuts down this HTTP client object, releasing any resources that might be
held open.
|
public HttpConnect(ClientConfiguration config)
public <T> Response<T> execute(Request<?> request, HttpResponseHandler<SCSWebServiceResponse<T>> responseHandler, HttpResponseHandler<SCSServiceException> errorResponseHandler, ExecutionContext executionContext) throws SCSClientException, SCSServiceException
request
- The AmazonWebServices request to send to the remote serverresponseHandler
- A response handler to accept a successful response from the
remote servererrorResponseHandler
- A response handler to accept an unsuccessful response from the
remote serverexecutionContext
- Additional information about the context of this web service
callSCSClientException
SCSServiceException
public void shutdown()
Copyright © 2016. All rights reserved.