com.kingsoft.services.handlers.HttpResponseHandler Maven / Gradle / Ivy
package com.kingsoft.services.handlers;
import com.kingsoft.services.exception.KWSClientException;
import com.kingsoft.services.http.HttpResponse;
public interface HttpResponseHandler {
/**
* 处理http响应结果,返回T类型对象
*
* @param response
* http响应结果
* @return T类型结果
* @throws Exception
* 处理http响应遇到问题
*/
T handle(HttpResponse response) throws KWSClientException;
String stringOfCode(int code);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy