diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-06-25 19:44:48 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-06-25 19:44:48 +0000 |
commit | 3a340db0c80b466bd32b55a8da3ad3a154c786bd (patch) | |
tree | 33c0266734c3a9f155fd6e064301357f2e467f27 | |
parent | 4e878869acb7ecb3995234f11a783f4821fca09b (diff) | |
parent | 57aa3fda811ec5d0b63bdee4d809e921b6e904e7 (diff) | |
download | apache-http-3a340db0c80b466bd32b55a8da3ad3a154c786bd.tar.gz |
Merge "Fix ReferencesHidden issues in apache http" am: 55b5ba17af am: bd2a970763 am: 57aa3fda81
Original change: https://android-review.googlesource.com/c/platform/external/apache-http/+/1348243
Change-Id: I14d4b7642abd8b3f678179f74ac626ff0199f0a2
-rw-r--r-- | Android.bp | 1 | ||||
-rw-r--r-- | android/src/android/net/http/Connection.java | 8 | ||||
-rw-r--r-- | android/src/android/net/http/Request.java | 4 | ||||
-rw-r--r-- | api/current.txt | 8 |
4 files changed, 13 insertions, 8 deletions
@@ -83,7 +83,6 @@ java_sdk_library { // Add dependencies on files used by droiddoc_options. droiddoc_option_files: [":frameworks-base-api-current.txt"], droiddoc_options: [ - "--hide ReferencesHidden", // Subtract classes from the API .txt / stubs that are in the public SDK API. Without this // the org.apache.http.legacy.jar would contain duplicates of classes in android.jar. // See http://b/119021844 for more details. diff --git a/android/src/android/net/http/Connection.java b/android/src/android/net/http/Connection.java index 4a49d22..53f8d5b 100644 --- a/android/src/android/net/http/Connection.java +++ b/android/src/android/net/http/Connection.java @@ -36,7 +36,7 @@ import org.apache.http.protocol.ExecutionContext; import org.apache.http.protocol.HttpContext; import org.apache.http.protocol.BasicHttpContext; -abstract class Connection { +public abstract class Connection { /** * Allow a TCP connection 60 idle seconds before erroring out @@ -52,7 +52,7 @@ abstract class Connection { Context mContext; /** The low level connection */ - protected AndroidHttpClientConnection mHttpClientConnection = null; + AndroidHttpClientConnection mHttpClientConnection = null; /** * The server SSL certificate associated with this connection @@ -60,7 +60,7 @@ abstract class Connection { * It would be nice to store the whole certificate chain, but * we want to keep things as light-weight as possible */ - protected SslCertificate mCertificate = null; + SslCertificate mCertificate = null; /** * The host this connection is connected to. If using proxy, @@ -98,7 +98,7 @@ abstract class Connection { */ private byte[] mBuf; - protected Connection(Context context, HttpHost host, + Connection(Context context, HttpHost host, RequestFeeder requestFeeder) { mContext = context; mHost = host; diff --git a/android/src/android/net/http/Request.java b/android/src/android/net/http/Request.java index d8eba11..2ed5d4c 100644 --- a/android/src/android/net/http/Request.java +++ b/android/src/android/net/http/Request.java @@ -44,7 +44,7 @@ import org.apache.http.protocol.RequestContent; * Represents an HTTP request for a given host. */ -class Request { +public class Request { /** The eventhandler to call as the request progresses */ EventHandler mEventHandler; @@ -503,7 +503,7 @@ class Request { * Handles SSL error(s) on the way down from the user (the user * has already provided their feedback). */ - public void handleSslErrorResponse(boolean proceed) { + void handleSslErrorResponse(boolean proceed) { HttpsConnection connection = (HttpsConnection)(mConnection); if (connection != null) { connection.restartConnection(proceed); diff --git a/api/current.txt b/api/current.txt index a04d0cd..9f1b879 100644 --- a/api/current.txt +++ b/api/current.txt @@ -72,6 +72,9 @@ package android.net.http { method public static android.net.http.SslError verifyServerCertificates(byte[][], String, String) throws java.io.IOException; } + public abstract class Connection { + } + public class DelegatingSSLSession implements javax.net.ssl.SSLSession { ctor protected DelegatingSSLSession(); method public int getApplicationBufferSize(); @@ -217,7 +220,7 @@ package android.net.http { field public static final int UNKNOWN = 0; // 0x0 } - public class HttpsConnection { + public class HttpsConnection extends android.net.http.Connection { method public static void initializeEngine(java.io.File); } @@ -234,6 +237,9 @@ package android.net.http { method public void status(int, int, int, String); } + public class Request { + } + public class RequestHandle { ctor public RequestHandle(android.net.http.RequestQueue, String, android.net.compatibility.WebAddress, String, java.util.Map<java.lang.String,java.lang.String>, java.io.InputStream, int, android.net.http.Request); ctor public RequestHandle(android.net.http.RequestQueue, String, android.net.compatibility.WebAddress, String, java.util.Map<java.lang.String,java.lang.String>, java.io.InputStream, int, android.net.http.Request, android.net.http.Connection); |