Commit 05020464 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Deprecate three classes using HttpURLConnection.

Fixes #20323.
parent b3d4ff17
# Changes in version 1.6.0 - 2016-??-?? # Changes in version 1.6.0 - 2016-??-??
* Major changes
- Deprecate DescriptorDownloader in favor of the much more widely
used DescriptorCollector.
* Medium changes * Medium changes
- Add two methods for loading and saving a parse history file in - Add two methods for loading and saving a parse history file in
the descriptor reader to avoid situations where applications fail the descriptor reader to avoid situations where applications fail
...@@ -17,6 +21,8 @@ ...@@ -17,6 +21,8 @@
entries, and "(recommended|required)-(client|relay)-protocols" entries, and "(recommended|required)-(client|relay)-protocols"
lines in consensuses and votes. lines in consensuses and votes.
- Parse "shared-rand-.*" lines in consensuses and votes. - Parse "shared-rand-.*" lines in consensuses and votes.
- Deprecate DescriptorCollectorImpl now that
DescriptorIndexCollector is the default.
# Changes in version 1.5.0 - 2016-10-19 # Changes in version 1.5.0 - 2016-10-19
......
...@@ -14,6 +14,9 @@ import java.util.Set; ...@@ -14,6 +14,9 @@ import java.util.Set;
* setting any configuration options and initiating the download * setting any configuration options and initiating the download
* process.</p> * process.</p>
* *
* @deprecated Removed as descriptor source in favor of the much more widely
* used {@link DescriptorCollector}.
*
* @since 1.0.0 * @since 1.0.0
*/ */
public interface DescriptorDownloader { public interface DescriptorDownloader {
......
...@@ -15,6 +15,10 @@ import java.util.List; ...@@ -15,6 +15,10 @@ import java.util.List;
* {@link Descriptor} interface. This container also stores potentially * {@link Descriptor} interface. This container also stores potentially
* useful meta-data about the descriptor request.</p> * useful meta-data about the descriptor request.</p>
* *
* @deprecated Removed as descriptor container together with
* {@link DescriptorDownloader} in favor of the much more widely used
* {@link DescriptorCollector}.
*
* @since 1.0.0 * @since 1.0.0
*/ */
public interface DescriptorRequest { public interface DescriptorRequest {
......
...@@ -32,6 +32,14 @@ import java.util.regex.Matcher; ...@@ -32,6 +32,14 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.zip.GZIPInputStream; import java.util.zip.GZIPInputStream;
/**
* Download files from a CollecTor instance based on the remote instance's
* directory listings.
*
* @deprecated Replaced by {@link DescriptorIndexCollector} which uses the
* remote instance's index.json file as a more robust alternative to parsing
* the remote instance's directory listings.
*/
public class DescriptorCollectorImpl implements DescriptorCollector { public class DescriptorCollectorImpl implements DescriptorCollector {
private static Logger log = LoggerFactory private static Logger log = LoggerFactory
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment