|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.AbstractDataStoreFactory
org.geotools.data.wfs.WFSDataStoreFactory
DOCUMENT ME!
| Nested Class Summary |
| Nested classes inherited from class org.geotools.data.DataStoreFactorySpi |
DataStoreFactorySpi.Param |
| Field Summary | |
static DataStoreFactorySpi.Param |
BUFFER_SIZE
Integer |
protected java.util.Map |
cache
|
protected static java.util.logging.Logger |
logger
|
static DataStoreFactorySpi.Param |
PASSWORD
String |
static DataStoreFactorySpi.Param |
PROTOCOL
boolean |
static DataStoreFactorySpi.Param |
TIMEOUT
Integer |
static DataStoreFactorySpi.Param |
URL
url |
static DataStoreFactorySpi.Param |
USERNAME
String |
| Constructor Summary | |
WFSDataStoreFactory()
|
|
| Method Summary | |
boolean |
canProcess(java.util.Map params)
Default implementation verifies the Map against the Param information. |
DataStore |
createDataStore(java.util.Map params)
Construct a live data source using the params specifed. |
DataStore |
createNewDataStore(java.util.Map params)
DOCUMENT ME! |
java.lang.String |
getDescription()
Describe the nature of the datasource constructed by this factory. |
java.lang.String |
getDisplayName()
Default Implementation abuses the naming convention. |
DataStoreFactorySpi.Param[] |
getParametersInfo()
MetaData about the required Parameters (for createDataStore). |
boolean |
isAvailable()
Defaults to true, only a few datastores need to check for drivers. |
| Methods inherited from class org.geotools.data.AbstractDataStoreFactory |
getImplementationHints, getParameters |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final DataStoreFactorySpi.Param URL
public static final DataStoreFactorySpi.Param PROTOCOL
public static final DataStoreFactorySpi.Param USERNAME
public static final DataStoreFactorySpi.Param PASSWORD
public static final DataStoreFactorySpi.Param TIMEOUT
public static final DataStoreFactorySpi.Param BUFFER_SIZE
protected java.util.Map cache
protected static final java.util.logging.Logger logger
| Constructor Detail |
public WFSDataStoreFactory()
| Method Detail |
public DataStore createDataStore(java.util.Map params)
throws java.io.IOException
DataStoreFactorySpiYou can think of this as setting up a connection to the back end data source.
Magic Params: the following params are magic and are honoured by convention by the GeoServer and uDig application.
params - The full set of information needed to construct a live
data store. Typical key values for the map include: url -
location of a resource, used by file reading datasources. dbtype
- the type of the database to connect to, e.g. postgis, mysql
java.io.IOExceptionDataStoreFactorySpi.createDataStore(java.util.Map)
public DataStore createNewDataStore(java.util.Map params)
throws java.io.IOException
params - DOCUMENT ME!
java.io.IOExceptionDataStoreFactorySpi.createNewDataStore(java.util.Map)public java.lang.String getDescription()
DataStoreFactorySpiA non localized description of this data store type.
DataStoreFactorySpi.getDescription()public DataStoreFactorySpi.Param[] getParametersInfo()
DataStoreFactorySpiInterpretation of FeatureDescriptor values:
This should be the same as:
Object params = factory.getParameters();
BeanInfo info = getBeanInfo( params );
return info.getPropertyDescriptors();
DataStoreFactorySpi.getParametersInfo()public boolean canProcess(java.util.Map params)
AbstractDataStoreFactoryIt will ensure that:
Why would you ever want to override this method? If you want to check that a expected file exists and is a directory.
Overrride:
public boolean canProcess( Map params ) {
if( !super.canProcess( params ) ){
return false; // was not in agreement with getParametersInfo
}
// example check
File file = (File) DIRECTORY.lookup( params ); // DIRECTORY is a param
return file.exists() && file.isDirectory();
}
canProcess in interface DataStoreFactorySpicanProcess in class AbstractDataStoreFactoryparams -
DataStoreFactorySpi.canProcess(java.util.Map)public java.lang.String getDisplayName()
AbstractDataStoreFactory
Will return Foo for
org.geotools.data.foo.FooFactory.
getDisplayName in interface DataStoreFactorySpigetDisplayName in class AbstractDataStoreFactoryDataStoreFactorySpi.getDisplayName()public boolean isAvailable()
AbstractDataStoreFactory
isAvailable in interface DataStoreFactorySpiisAvailable in class AbstractDataStoreFactorytrue, override to check for drivers etc...DataStoreFactorySpi.isAvailable()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||