Top Description Fields Constructors Methods
org.apache.http.impl.cookie

public Class PublicSuffixListParser

extends Object
Class Inheritance
Annotations
@Contract
threading:IMMUTABLE
@Deprecated
Imports
java.io.IOException, .Reader, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.conn.util.PublicSuffixList

Deprecated

(4.4) use org.apache.http.conn.util.PublicSuffixListParser.

Parses the list from publicsuffix.org and configures a PublicSuffixFilter.
Since
4.0

Field Summary

Modifier and TypeField and Description
private final PublicSuffixFilter
filter

Deprecated as a consequence of PublicSuffixFilter being deprecated.
private final PublicSuffixListParser

Constructor Summary

AccessConstructor and Description
pack-priv
PublicSuffixListParser(final PublicSuffixFilter filter)

Deprecated as a consequence of PublicSuffixFilter being deprecated.

Method Summary

Modifier and TypeMethod and Description
public void
parse(final Reader
the suffix list. The caller is responsible for closing the reader.
reader
)

Parses the public suffix list format.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

filterback to summary
private final PublicSuffixFilter filter

Deprecated

as a consequence of PublicSuffixFilter being deprecated. See corresponding docs for further information.

parserback to summary
private final PublicSuffixListParser parser

Constructor Detail

PublicSuffixListParserback to summary
pack-priv PublicSuffixListParser(final PublicSuffixFilter filter)

Deprecated

as a consequence of PublicSuffixFilter being deprecated. See corresponding docs for further information.

Method Detail

parseback to summary
public void parse(final Reader reader) throws IOException

Parses the public suffix list format. When creating the reader from the file, make sure to use the correct encoding (the original list is in UTF-8).

Parameters
reader:Reader

the suffix list. The caller is responsible for closing the reader.

Exceptions
IOException:
on error while reading from list