接口的使用
com.alibaba.nacos.common.http.client.handler.ResponseHandler
使用ResponseHandler的程序包
程序包
说明
-
com.alibaba.nacos.common.http.client中ResponseHandler的使用
修饰符和类型方法说明protected ResponseHandlerAbstractNacosRestTemplate.selectResponseHandler(Type responseType)Select a response handler by responseType.修饰符和类型方法说明voidAbstractNacosRestTemplate.registerResponseHandler(String responseHandlerType, ResponseHandler responseHandler)register customization Response Handler. -
com.alibaba.nacos.common.http.client.handler中ResponseHandler的使用
修饰符和类型类说明classAbstract response handler.classbean response handler, Mainly converter response type as bean type.classRestResult response handler, Mainly converter response type asRestResulttype.classstring response handler, Mainly converter response type as string type. -
com.alibaba.nacos.common.http.client.request中ResponseHandler的使用
修饰符和类型方法说明<T> voidAsyncHttpClientRequest.execute(URI uri, String httpMethod, RequestHttpEntity requestHttpEntity, ResponseHandler<T> responseHandler, Callback<T> callback)execute async http request.<T> voidDefaultAsyncHttpClientRequest.execute(URI uri, String httpMethod, RequestHttpEntity requestHttpEntity, ResponseHandler<T> responseHandler, Callback<T> callback)