Class ServerData
java.lang.Object
org.gvsig.utils.swing.jcomboServer.ServerData
- All Implemented Interfaces:
org.gvsig.tools.persistence.Persistent
This class represents a data server, that can be a WMS, WFS, Catalog or
any kind of server. It contains the server URL and has a couple of
attributes that describe the server type (serverType and serverSubType).
It contains the date when the server was created and the date when the server
was accessed last time. *
- Author:
- Jorge Piera Llodra (piera_jor@gva.es)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionServerData(String serverAddress, String serviceType) Constructor for a new ServerServerData(String serverAddress, String serviceType, String serviceSubType) Constructor for a new ServerServerData(String serverAddress, String serviceType, String serviceSubType, String database) Constructor for a new ServerServerData(String serverAddress, Date added, Date lastAccess, String serviceType, String serviceSubType) ServerData(String serverAddress, Date added, Date lastAccess, String serviceType, String serviceSubType, String database) -
Method Summary
Modifier and TypeMethodDescriptiongetAdded()getProperty(String propertyName) voidloadFromState(org.gvsig.tools.persistence.PersistentState state) static voidvoidsaveToState(org.gvsig.tools.persistence.PersistentState state) voidvoidsetDatabase(String database) voidsetLastAccess(Date lastAccess) voidsetProperies(Properties properies) voidsetServerAddress(String serverAddress) voidsetServiceSubType(String serviceSubType) voidsetServiceType(String serviceType) toString()The server address field have to be showed in the combovoidThis method updates the last access attribute.
-
Field Details
-
PERSISTENT_NAME
- See Also:
-
PERSISTENT_DESCRIPTION
- See Also:
-
SERVER_TYPE_CATALOG
- See Also:
-
SERVER_TYPE_GAZETTEER
- See Also:
-
SERVER_TYPE_MULTIPLE
- See Also:
-
SERVER_TYPE_WMS
- See Also:
-
SERVER_TYPE_WCS
- See Also:
-
SERVER_TYPE_WFS
- See Also:
-
SERVER_TYPE_WMTS
- See Also:
-
SERVER_SUBTYPE_CATALOG_Z3950
- See Also:
-
SERVER_SUBTYPE_CATALOG_SRW
- See Also:
-
SERVER_SUBTYPE_CATALOG_CSW
- See Also:
-
SERVER_SUBTYPE_GAZETTEER_WFSG
- See Also:
-
SERVER_SUBTYPE_GAZETTEER_ADL
- See Also:
-
SERVER_SUBTYPE_GAZETTEER_IDEC
- See Also:
-
SERVER_SUBTYPE_GAZETTEER_WFS
- See Also:
-
-
Constructor Details
-
ServerData
public ServerData(String serverAddress, Date added, Date lastAccess, String serviceType, String serviceSubType) - Parameters:
serverAddress- Server addressadded- When the server was addedlastAccess- When the server was used last timeserviceType- Service typeserviceSubType- Service subtype
-
ServerData
public ServerData() -
ServerData
public ServerData(String serverAddress, Date added, Date lastAccess, String serviceType, String serviceSubType, String database) - Parameters:
serverAddress- Server addressadded- When the server was addedlastAccess- When the server was used last timeserviceType- Service typeserviceSubType- Service subtypedatabase- Database name
-
ServerData
Constructor for a new Server- Parameters:
serverAddress- Server AddressserviceType- Server TypeserviceSubType- Server Subtype
-
ServerData
Constructor for a new Server- Parameters:
serverAddress- Server AddressserviceType- Server TypeserviceSubType- Server Subtype
-
ServerData
Constructor for a new Server- Parameters:
serverAddress- Server AddressserviceType- Server Type
-
-
Method Details
-
updateLastAccess
public void updateLastAccess()This method updates the last access attribute. New value is the current time. -
toString
The server address field have to be showed in the combo -
getAdded
- Returns:
- Returns the added.
-
setAdded
- Parameters:
added- The added to set.
-
getLastAccess
- Returns:
- Returns the lastAccess.
-
setLastAccess
- Parameters:
lastAccess- The lastAccess to set.
-
getServerAddress
- Returns:
- Returns the serverAddress.
-
setServerAddress
- Parameters:
serverAddress- The serverAddress to set.
-
getServiceSubType
- Returns:
- Returns the serviceSubType.
-
setServiceSubType
- Parameters:
serviceSubType- The serviceSubType to set.
-
getServiceType
- Returns:
- Returns the serviceType.
-
setServiceType
- Parameters:
serviceType- The serviceType to set.
-
getDatabase
-
setDatabase
-
getProperies
- Returns:
- Returns the properies.
-
setProperies
- Parameters:
properies- The properies to set.
-
getProperty
- Parameters:
propertyName-- Returns:
-
saveToState
public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
saveToStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
loadFromState
public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException - Specified by:
loadFromStatein interfaceorg.gvsig.tools.persistence.Persistent- Throws:
org.gvsig.tools.persistence.exception.PersistenceException
-
registerPersistence
public static void registerPersistence()
-