2 * XdccDownloader - Configuration.java - Copyright © 2013 David Roden
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 package net.pterodactylus.xdcc.main;
22 import org.codehaus.jackson.annotate.JsonProperty;
25 * Container for configuration data.
27 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
29 public class Configuration {
31 public static class Network {
33 public static class Server {
36 private String hostname;
39 private Set<Integer> unencryptedPorts;
42 private Set<Integer> encryptedPorts;
44 public String getHostname() {
48 public Set<Integer> getUnencryptedPorts() {
49 return unencryptedPorts;
52 public Set<Integer> getEncryptedPorts() {
53 return encryptedPorts;
62 private Set<Server> servers;
65 private Set<String> channels;
67 public String getName() {
71 public Set<Server> getServers() {
75 public Set<String> getChannels() {
82 private Set<Network> networks;
85 private String temporaryDirectory;
88 private String finalDirectory;
91 private int telnetPort;
93 public Set<Network> getNetworks() {
97 public String getTemporaryDirectory() {
98 return temporaryDirectory;
101 public String getFinalDirectory() {
102 return finalDirectory;
105 public int getTelnetPort() {