public class ServerData extends Object implements Persistent
Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENT_DESCRIPTION |
static String |
PERSISTENT_NAME |
static String |
SERVER_SUBTYPE_CATALOG_CSW |
static String |
SERVER_SUBTYPE_CATALOG_SRW |
static String |
SERVER_SUBTYPE_CATALOG_Z3950 |
static String |
SERVER_SUBTYPE_GAZETTEER_ADL |
static String |
SERVER_SUBTYPE_GAZETTEER_IDEC |
static String |
SERVER_SUBTYPE_GAZETTEER_WFS |
static String |
SERVER_SUBTYPE_GAZETTEER_WFSG |
static String |
SERVER_TYPE_CATALOG |
static String |
SERVER_TYPE_GAZETTEER |
static String |
SERVER_TYPE_MULTIPLE |
static String |
SERVER_TYPE_WCS |
static String |
SERVER_TYPE_WFS |
static String |
SERVER_TYPE_WMS |
static String |
SERVER_TYPE_WMTS |
Constructor and Description |
---|
ServerData() |
ServerData(String serverAddress,
Date added,
Date lastAccess,
String serviceType,
String serviceSubType) |
ServerData(String serverAddress,
Date added,
Date lastAccess,
String serviceType,
String serviceSubType,
String database) |
ServerData(String serverAddress,
String serviceType)
Constructor for a new Server
|
ServerData(String serverAddress,
String serviceType,
String serviceSubType)
Constructor for a new Server
|
ServerData(String serverAddress,
String serviceType,
String serviceSubType,
String database)
Constructor for a new Server
|
Modifier and Type | Method and Description |
---|---|
Date |
getAdded() |
String |
getDatabase() |
Date |
getLastAccess() |
Properties |
getProperies() |
String |
getProperty(String propertyName) |
String |
getServerAddress() |
String |
getServiceSubType() |
String |
getServiceType() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setAdded(Date added) |
void |
setDatabase(String database) |
void |
setLastAccess(Date lastAccess) |
void |
setProperies(Properties properies) |
void |
setServerAddress(String serverAddress) |
void |
setServiceSubType(String serviceSubType) |
void |
setServiceType(String serviceType) |
String |
toString()
The server address field have to be showed in the combo
|
void |
updateLastAccess()
This method updates the last access attribute.
|
public static final String PERSISTENT_NAME
public static final String PERSISTENT_DESCRIPTION
public static final String SERVER_TYPE_CATALOG
public static final String SERVER_TYPE_GAZETTEER
public static final String SERVER_TYPE_MULTIPLE
public static final String SERVER_TYPE_WMS
public static final String SERVER_TYPE_WCS
public static final String SERVER_TYPE_WFS
public static final String SERVER_TYPE_WMTS
public static final String SERVER_SUBTYPE_CATALOG_Z3950
public static final String SERVER_SUBTYPE_CATALOG_SRW
public static final String SERVER_SUBTYPE_CATALOG_CSW
public static final String SERVER_SUBTYPE_GAZETTEER_WFSG
public static final String SERVER_SUBTYPE_GAZETTEER_ADL
public static final String SERVER_SUBTYPE_GAZETTEER_IDEC
public static final String SERVER_SUBTYPE_GAZETTEER_WFS
public ServerData(String serverAddress, Date added, Date lastAccess, String serviceType, String serviceSubType)
serverAddress
- Server addressadded
- When the server was addedlastAccess
- When the server was used last timeserviceType
- Service typeserviceSubType
- Service subtypepublic ServerData()
public ServerData(String serverAddress, Date added, Date lastAccess, String serviceType, String serviceSubType, String database)
serverAddress
- Server addressadded
- When the server was addedlastAccess
- When the server was used last timeserviceType
- Service typeserviceSubType
- Service subtypedatabase
- Database namepublic ServerData(String serverAddress, String serviceType, String serviceSubType)
serverAddress
- Server AddressserviceType
- Server TypeserviceSubType
- Server Subtypepublic ServerData(String serverAddress, String serviceType, String serviceSubType, String database)
serverAddress
- Server AddressserviceType
- Server TypeserviceSubType
- Server Subtypepublic void updateLastAccess()
public String toString()
public Date getAdded()
public void setAdded(Date added)
added
- The added to set.public Date getLastAccess()
public void setLastAccess(Date lastAccess)
lastAccess
- The lastAccess to set.public String getServerAddress()
public void setServerAddress(String serverAddress)
serverAddress
- The serverAddress to set.public String getServiceSubType()
public void setServiceSubType(String serviceSubType)
serviceSubType
- The serviceSubType to set.public String getServiceType()
public void setServiceType(String serviceType)
serviceType
- The serviceType to set.public String getDatabase()
public void setDatabase(String database)
public Properties getProperies()
public void setProperies(Properties properies)
properies
- The properies to set.public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public static void registerPersistence()