有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java使用内部API Rest客户端

我正在使用一个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

共 (0) 个答案