it.geosolutions.geoserver.rest.encoder.datastore
Class GSArcSDEDatastoreEncoder

java.lang.Object
  extended by it.geosolutions.geoserver.rest.encoder.utils.XmlElement
      extended by it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
          extended by it.geosolutions.geoserver.rest.encoder.GSAbstractStoreEncoder
              extended by it.geosolutions.geoserver.rest.encoder.datastore.GSAbstractDatastoreEncoder
                  extended by it.geosolutions.geoserver.rest.encoder.datastore.GSArcSDEDatastoreEncoder

public class GSArcSDEDatastoreEncoder
extends GSAbstractDatastoreEncoder

Encoder for an datastore.

Author:
Gianni Barrotta, Oscar Fonts

Constructor Summary
GSArcSDEDatastoreEncoder(RESTDataStore store)
          Create an datastore encoder from an existing store read from server.
GSArcSDEDatastoreEncoder(String name, String server, String user)
          Create an datastore with default connection parameters, given a store name, a server name, and a user name.
 
Method Summary
 boolean getAllowNonSpatialTables()
           
 int getConnectionTimeout()
           
 String getDbType()
           
 String getInstance()
           
 int getMaxConnections()
           
 int getMinConnections()
           
 String getNamespace()
           
 String getPassword()
           
 int getPort()
           
 String getServer()
           
 String getUser()
           
protected  String getValidType()
          The type of the implementing datastore.
 void setAllowNonSpatialTables(boolean allowNonSpatialTables)
           
 void setConnectionTimeout(int seconds)
           
 void setDbType(String dbtype)
           
 void setInstance(String instance)
           
 void setMaxConnections(int maxConnections)
           
 void setMinConnections(int minConnections)
           
 void setNamespace(String namespace)
           
 void setPassword(String password)
           
 void setPort(int port)
           
 void setServer(String server)
           
 void setUser(String user)
           
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.GSAbstractStoreEncoder
ensureValidName, ensureValidType, getDescription, getEnabled, getName, getStoreType, getType, setDescription, setEnabled, setName, setType
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
add, get, get, set
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement
add, addContent, getRoot, isEmpty, remove, set, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GSArcSDEDatastoreEncoder

public GSArcSDEDatastoreEncoder(String name,
                                String server,
                                String user)
Create an datastore with default connection parameters, given a store name, a server name, and a user name. The following default connection parameters are set:

Parameters:
name - New datastore name
server - New server name
user - New user name

GSArcSDEDatastoreEncoder

public GSArcSDEDatastoreEncoder(RESTDataStore store)
Create an datastore encoder from an existing store read from server.

Parameters:
store - The existing store.
Throws:
IllegalArgumentException - if store type or mandatory parameters are not valid
Method Detail

setDbType

public void setDbType(String dbtype)

getDbType

public String getDbType()

setServer

public void setServer(String server)

getServer

public String getServer()

setPort

public void setPort(int port)

getPort

public int getPort()

setInstance

public void setInstance(String instance)

getInstance

public String getInstance()

setUser

public void setUser(String user)

getUser

public String getUser()

setPassword

public void setPassword(String password)

getPassword

public String getPassword()

setNamespace

public void setNamespace(String namespace)

getNamespace

public String getNamespace()

setMinConnections

public void setMinConnections(int minConnections)

getMinConnections

public int getMinConnections()

setMaxConnections

public void setMaxConnections(int maxConnections)

getMaxConnections

public int getMaxConnections()

setConnectionTimeout

public void setConnectionTimeout(int seconds)

getConnectionTimeout

public int getConnectionTimeout()

setAllowNonSpatialTables

public void setAllowNonSpatialTables(boolean allowNonSpatialTables)

getAllowNonSpatialTables

public boolean getAllowNonSpatialTables()

getValidType

protected String getValidType()
Description copied from class: GSAbstractDatastoreEncoder
The type of the implementing datastore.

Specified by:
getValidType in class GSAbstractDatastoreEncoder
Returns:


Copyright © 2007-2013 GeoSolutions. All Rights Reserved.