@Immutable public final class DomainListFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_FILE
The configuration property for the bundled server list file.
|
static String |
PROPERTY_URL
The configuration property for the server list url.
|
static String |
PROPERTYFILE
The bundled default configuration.
|
| Constructor and Description |
|---|
DomainListFactory() |
| Modifier and Type | Method and Description |
|---|---|
DomainList |
build()
Builds a new server list from the locally bundled server list.
|
DomainList |
build(URL url)
Builds a new server list from an URL.
|
DomainList |
download()
Builds a new server list from default remote location.
|
@PropertyKey public static final String PROPERTY_URL
@PropertyKey public static final String PROPERTY_FILE
public static final String PROPERTYFILE
public DomainList build(URL url) throws JAXBException
url - the server list url, not nullJAXBException - If unmarshalling failedpublic DomainList build()
public DomainList download() throws JAXBException
JAXBException - If unmarshalling failedCopyright © 2016. All rights reserved.