1 |
package skrueger.geotools.io; |
package skrueger.geotools.io; |
2 |
|
|
|
import java.net.MalformedURLException; |
|
3 |
import java.util.HashMap; |
import java.util.HashMap; |
4 |
|
|
5 |
public abstract class ServerSettings<T1, T2> extends HashMap<T1, T2> { |
public abstract class AbstractGTServerSettings<T1, T2> extends HashMap<T1, T2> |
6 |
|
implements ServerSettings { |
7 |
|
|
8 |
abstract public String toPropertiesString(); |
public AbstractGTServerSettings(String propString) { |
9 |
|
parsePropertiesString(propString); |
10 |
|
} |
11 |
|
|
12 |
|
public AbstractGTServerSettings() { |
13 |
|
} |
14 |
|
|
15 |
static Integer intOrNull(String string) { |
static Integer intOrNull(String string) { |
16 |
if (string == null) |
if (string == null) |
54 |
return title; |
return title; |
55 |
} |
} |
56 |
|
|
|
abstract public boolean parsePropertiesString(String propString) |
|
|
throws MalformedURLException ; |
|
|
|
|
57 |
} |
} |