All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kingsoft.services.handlers.HttpResponseHandler Maven / Gradle / Ivy

There is a newer version: 0.9.91
Show newest version
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