1 |
alfonx |
1291 |
package skrueger.geotools.io; |
2 |
|
|
|
3 |
|
|
import java.net.MalformedURLException; |
4 |
|
|
import java.util.HashMap; |
5 |
|
|
|
6 |
|
|
/** |
7 |
|
|
* This class describes all settings needed to connect to a Geoserver server via REST configuration. This |
8 |
|
|
* class extends a {@link HashMap} and contains two groups of keys:<br/> |
9 |
|
|
* The first group of keys, are all keys provided by Geotools to create a WFS |
10 |
|
|
* <br/> |
11 |
|
|
* This class can serialize all important parameters needed to define the |
12 |
|
|
* connection into a {@link String} with {@link #toPropertiesString()} and |
13 |
|
|
* re-import the String with {@link #parsePropertiesString(String)}. |
14 |
|
|
*/ |
15 |
|
|
public class GsServerSettings extends ServerSettings<Void, Void> { |
16 |
|
|
|
17 |
|
|
@Override |
18 |
|
|
public String toPropertiesString() { |
19 |
|
|
// TODO Auto-generated method stub |
20 |
|
|
return null; |
21 |
|
|
} |
22 |
|
|
|
23 |
|
|
@Override |
24 |
alfonx |
1292 |
public boolean parsePropertiesString(String propString) |
25 |
alfonx |
1291 |
throws MalformedURLException { |
26 |
|
|
// TODO Auto-generated method stub |
27 |
alfonx |
1292 |
return false; |
28 |
alfonx |
1291 |
} |
29 |
|
|
|
30 |
|
|
|
31 |
|
|
String url; |
32 |
|
|
public String getUrl() { |
33 |
|
|
return url; |
34 |
|
|
} |
35 |
|
|
|
36 |
|
|
public void setUrl(String url) { |
37 |
|
|
this.url = url; |
38 |
|
|
} |
39 |
|
|
|
40 |
|
|
public String getUsername() { |
41 |
|
|
return username; |
42 |
|
|
} |
43 |
|
|
|
44 |
|
|
public void setUsername(String username) { |
45 |
|
|
this.username = username; |
46 |
|
|
} |
47 |
|
|
|
48 |
|
|
public String getPassword() { |
49 |
|
|
return password; |
50 |
|
|
} |
51 |
|
|
|
52 |
|
|
public void setPassword(String password) { |
53 |
|
|
this.password = password; |
54 |
|
|
} |
55 |
|
|
|
56 |
|
|
|
57 |
|
|
String username; |
58 |
|
|
String password; |
59 |
|
|
|
60 |
|
|
} |