@Immutable public final class ServerListFactory 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 |
|---|
ServerListFactory() |
| Modifier and Type | Method and Description |
|---|---|
Serverlist |
build()
Builds a new server list from the locally bundled server list.
|
Serverlist |
build(URL url)
Builds a new server list from an URL.
|
Serverlist |
download()
Builds a new server list from default remote location.
|
public static final String PROPERTY_URL
public static final String PROPERTY_FILE
public static final String PROPERTYFILE
public Serverlist build(URL url) throws JAXBException
properties - the server list url, not nullJAXBException - If unmarshalling failedpublic Serverlist build()
JAXBException - If unmarshalling failedpublic Serverlist download() throws JAXBException
JAXBException - If unmarshalling failedCopyright © 2014. All Rights Reserved.