类 AbstractResponseHandler<T>
java.lang.Object
com.alibaba.nacos.common.http.client.handler.AbstractResponseHandler<T>
- 所有已实现的接口:
ResponseHandler<T>
Abstract response handler.
- 作者:
- mai.jh
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract HttpRestResult<T>convertResult(HttpClientResponse response, Type responseType)Abstract convertResult method, Different types of converters for expansion.handle(HttpClientResponse response)handle response convert to HttpRestResult.voidsetResponseType(Type responseType)set response type.
-
构造器详细资料
-
AbstractResponseHandler
public AbstractResponseHandler()
-
-
方法详细资料
-
setResponseType
从接口复制的说明:ResponseHandlerset response type.- 指定者:
setResponseType在接口中ResponseHandler<T>- 参数:
responseType- responseType
-
handle
从接口复制的说明:ResponseHandlerhandle response convert to HttpRestResult.- 指定者:
handle在接口中ResponseHandler<T>- 参数:
response- http response- 返回:
- HttpRestResult
HttpRestResult - 抛出:
Exception- ex
-
convertResult
public abstract HttpRestResult<T> convertResult(HttpClientResponse response, Type responseType) throws ExceptionAbstract convertResult method, Different types of converters for expansion.- 参数:
response- http client responseresponseType- responseType- 返回:
- HttpRestResult
- 抛出:
Exception- ex
-