public abstract class AbstractAction<T extends AbstractRequest,V> extends Object implements Action<T,V>
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
actionName |
static org.apache.commons.logging.Log |
logger |
| 构造器和说明 |
|---|
AbstractAction(HttpMethod method,
String actionName,
com.aliyun.mq.http.common.http.ServiceClient client,
com.aliyun.mq.http.common.auth.ServiceCredentials credentials,
URI endpoint) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addRequiredHeader(com.aliyun.mq.http.common.http.RequestMessage request) |
protected void |
addSignatureHeader(com.aliyun.mq.http.common.http.RequestMessage request) |
protected com.aliyun.mq.http.common.parser.ResultParser<Exception> |
buildExceptionParser() |
protected abstract com.aliyun.mq.http.common.http.RequestMessage |
buildRequest(T reqObject) |
protected com.aliyun.mq.http.common.http.RequestMessage |
buildRequestMessage(T reqObject) |
protected com.aliyun.mq.http.common.parser.ResultParser<V> |
buildResultParser() |
V |
execute(T reqObject) |
AsyncResult<V> |
execute(T reqObject,
AsyncCallback<V> asyncHandler) |
AsyncResult<V> |
executeWithCustomHeaders(T reqObject,
AsyncCallback<V> asyncHandler,
Map<String,String> customHeaders) |
V |
executeWithCustomHeaders(T reqObject,
Map<String,String> customHeaders) |
String |
getActionName() |
com.aliyun.mq.http.common.http.ServiceClient |
getClient() |
com.aliyun.mq.http.common.auth.ServiceCredentials |
getCredentials() |
URI |
getEndpoint() |
HttpMethod |
getMethod() |
public static org.apache.commons.logging.Log logger
protected String actionName
public AbstractAction(HttpMethod method, String actionName, com.aliyun.mq.http.common.http.ServiceClient client, com.aliyun.mq.http.common.auth.ServiceCredentials credentials, URI endpoint)
public String getActionName()
getActionName 在接口中 Action<T extends AbstractRequest,V>public com.aliyun.mq.http.common.http.ServiceClient getClient()
getClient 在接口中 Action<T extends AbstractRequest,V>public com.aliyun.mq.http.common.auth.ServiceCredentials getCredentials()
getCredentials 在接口中 Action<T extends AbstractRequest,V>public HttpMethod getMethod()
getMethod 在接口中 Action<T extends AbstractRequest,V>public URI getEndpoint()
public AsyncResult<V> execute(T reqObject, AsyncCallback<V> asyncHandler) throws ClientException, ServiceException
execute 在接口中 Action<T extends AbstractRequest,V>ClientExceptionServiceExceptionpublic AsyncResult<V> executeWithCustomHeaders(T reqObject, AsyncCallback<V> asyncHandler, Map<String,String> customHeaders) throws ClientException, ServiceException
public V execute(T reqObject) throws ClientException, ServiceException
execute 在接口中 Action<T extends AbstractRequest,V>ClientExceptionServiceExceptionpublic V executeWithCustomHeaders(T reqObject, Map<String,String> customHeaders) throws ClientException, ServiceException
protected void addRequiredHeader(com.aliyun.mq.http.common.http.RequestMessage request)
protected void addSignatureHeader(com.aliyun.mq.http.common.http.RequestMessage request)
throws ClientException
ClientExceptionprotected com.aliyun.mq.http.common.http.RequestMessage buildRequestMessage(T reqObject) throws ClientException
ClientExceptionprotected com.aliyun.mq.http.common.parser.ResultParser<V> buildResultParser()
protected com.aliyun.mq.http.common.parser.ResultParser<Exception> buildExceptionParser()
protected abstract com.aliyun.mq.http.common.http.RequestMessage buildRequest(T reqObject) throws ClientException
ClientExceptionCopyright © 2021. All Rights Reserved.