我正在使用REST客户端代码,该代码当前使用以下声明为内部API的导入,因此应避免使用我们的测试工具。有什么可能的选择。
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
import org.apache.http.client.utils.URIBuilder;
This class makes use of internal API classes. As these classes are not documented, nor externally released as part of the API, they are subject to change or removal. You should not be using these classes.
Packages that shouldn't be used are:
•sun.xxx
•org.apache.xerces.xxx
•org.apache.xalan.xxx