public class ServerData extends java.lang.Object implements Persistent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERSISTENT_DESCRIPTION |
static java.lang.String |
PERSISTENT_NAME |
static java.lang.String |
SERVER_SUBTYPE_CATALOG_CSW |
static java.lang.String |
SERVER_SUBTYPE_CATALOG_SRW |
static java.lang.String |
SERVER_SUBTYPE_CATALOG_Z3950 |
static java.lang.String |
SERVER_SUBTYPE_GAZETTEER_ADL |
static java.lang.String |
SERVER_SUBTYPE_GAZETTEER_IDEC |
static java.lang.String |
SERVER_SUBTYPE_GAZETTEER_WFS |
static java.lang.String |
SERVER_SUBTYPE_GAZETTEER_WFSG |
static java.lang.String |
SERVER_TYPE_CATALOG |
static java.lang.String |
SERVER_TYPE_GAZETTEER |
static java.lang.String |
SERVER_TYPE_MULTIPLE |
static java.lang.String |
SERVER_TYPE_WCS |
static java.lang.String |
SERVER_TYPE_WFS |
static java.lang.String |
SERVER_TYPE_WMS |
static java.lang.String |
SERVER_TYPE_WMTS |
Constructor and Description |
---|
ServerData() |
ServerData(java.lang.String serverAddress,
java.util.Date added,
java.util.Date lastAccess,
java.lang.String serviceType,
java.lang.String serviceSubType) |
ServerData(java.lang.String serverAddress,
java.util.Date added,
java.util.Date lastAccess,
java.lang.String serviceType,
java.lang.String serviceSubType,
java.lang.String database) |
ServerData(java.lang.String serverAddress,
java.lang.String serviceType)
Constructor for a new Server
|
ServerData(java.lang.String serverAddress,
java.lang.String serviceType,
java.lang.String serviceSubType)
Constructor for a new Server
|
ServerData(java.lang.String serverAddress,
java.lang.String serviceType,
java.lang.String serviceSubType,
java.lang.String database)
Constructor for a new Server
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAdded() |
java.lang.String |
getDatabase() |
java.util.Date |
getLastAccess() |
java.util.Properties |
getProperies() |
java.lang.String |
getProperty(java.lang.String propertyName) |
java.lang.String |
getServerAddress() |
java.lang.String |
getServiceSubType() |
java.lang.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(java.util.Date added) |
void |
setDatabase(java.lang.String database) |
void |
setLastAccess(java.util.Date lastAccess) |
void |
setProperies(java.util.Properties properies) |
void |
setServerAddress(java.lang.String serverAddress) |
void |
setServiceSubType(java.lang.String serviceSubType) |
void |
setServiceType(java.lang.String serviceType) |
java.lang.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 java.lang.String PERSISTENT_NAME
public static final java.lang.String PERSISTENT_DESCRIPTION
public static final java.lang.String SERVER_TYPE_CATALOG
public static final java.lang.String SERVER_TYPE_GAZETTEER
public static final java.lang.String SERVER_TYPE_MULTIPLE
public static final java.lang.String SERVER_TYPE_WMS
public static final java.lang.String SERVER_TYPE_WCS
public static final java.lang.String SERVER_TYPE_WFS
public static final java.lang.String SERVER_TYPE_WMTS
public static final java.lang.String SERVER_SUBTYPE_CATALOG_Z3950
public static final java.lang.String SERVER_SUBTYPE_CATALOG_SRW
public static final java.lang.String SERVER_SUBTYPE_CATALOG_CSW
public static final java.lang.String SERVER_SUBTYPE_GAZETTEER_WFSG
public static final java.lang.String SERVER_SUBTYPE_GAZETTEER_ADL
public static final java.lang.String SERVER_SUBTYPE_GAZETTEER_IDEC
public static final java.lang.String SERVER_SUBTYPE_GAZETTEER_WFS
public ServerData(java.lang.String serverAddress, java.util.Date added, java.util.Date lastAccess, java.lang.String serviceType, java.lang.String serviceSubType)
serverAddress
- Server addressadded
- When the server was addedlastAccess
- When the server was used last timeserviceType
- Service typeserviceSubType
- Service subtypepublic ServerData()
public ServerData(java.lang.String serverAddress, java.util.Date added, java.util.Date lastAccess, java.lang.String serviceType, java.lang.String serviceSubType, java.lang.String database)
serverAddress
- Server addressadded
- When the server was addedlastAccess
- When the server was used last timeserviceType
- Service typeserviceSubType
- Service subtypedatabase
- Database namepublic ServerData(java.lang.String serverAddress, java.lang.String serviceType, java.lang.String serviceSubType)
serverAddress
- Server AddressserviceType
- Server TypeserviceSubType
- Server Subtypepublic ServerData(java.lang.String serverAddress, java.lang.String serviceType, java.lang.String serviceSubType, java.lang.String database)
serverAddress
- Server AddressserviceType
- Server TypeserviceSubType
- Server Subtypepublic ServerData(java.lang.String serverAddress, java.lang.String serviceType)
serverAddress
- Server AddressserviceType
- Server Typepublic void updateLastAccess()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Date getAdded()
public void setAdded(java.util.Date added)
added
- The added to set.public java.util.Date getLastAccess()
public void setLastAccess(java.util.Date lastAccess)
lastAccess
- The lastAccess to set.public java.lang.String getServerAddress()
public void setServerAddress(java.lang.String serverAddress)
serverAddress
- The serverAddress to set.public java.lang.String getServiceSubType()
public void setServiceSubType(java.lang.String serviceSubType)
serviceSubType
- The serviceSubType to set.public java.lang.String getServiceType()
public void setServiceType(java.lang.String serviceType)
serviceType
- The serviceType to set.public java.lang.String getDatabase()
public void setDatabase(java.lang.String database)
public java.util.Properties getProperies()
public void setProperies(java.util.Properties properies)
properies
- The properies to set.public java.lang.String getProperty(java.lang.String propertyName)
propertyName
- 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()