gistoolkit.server.mapservice.adminextender
Class DatasourceHandler

java.lang.Object
  extended bygistoolkit.server.mapservice.adminextender.DatasourceHandler

public class DatasourceHandler
extends java.lang.Object

Class to handle the generic creation of data sources.


Field Summary
static java.lang.String DATASOURCE_DATA_TAG
          The HTML Tag for the data for the particular datasource to use.
static java.lang.String DATASOURCE_TYPE_DB2SPATIAL
           
static java.lang.String DATASOURCE_TYPE_ERMAPPER
           
static java.lang.String DATASOURCE_TYPE_IMAGEDIRECTORY
           
static java.lang.String DATASOURCE_TYPE_IMAGEFILE
           
static java.lang.String DATASOURCE_TYPE_MYSQL
           
static java.lang.String DATASOURCE_TYPE_ORACLE
           
static java.lang.String DATASOURCE_TYPE_POSTGIS
           
static java.lang.String DATASOURCE_TYPE_RASTERCATALOG
           
static java.lang.String DATASOURCE_TYPE_SEAMLESS
           
static java.lang.String DATASOURCE_TYPE_SHAPEFILE
          Known DataSource Types.
static java.lang.String DATASOURCE_TYPE_TAG
          The HTML Tag for the type of datasource to use.
static java.lang.String DATASOURCE_TYPE_TERRASERVER
           
 
Constructor Summary
DatasourceHandler()
          Creates a new data source handler.
 
Method Summary
static void doGet(Request inRequest, Response inResponse, Server inServer, Service inService)
          handle requests.
static DataSource getDataSource(Request inRequest, Response inResponse, Server inServer, Service inService)
          Return the fully configured datasource for this particular data source type.
static void showGetDatasourceData(Request inRequest, Response inResponse, Server inServer, Service inService)
          Show the information for the datasource the user has selected.
static void showServicePage(Request inRequest, Response inResponse, Server inServer, Service inService)
          Show information only about the known data sources server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATASOURCE_TYPE_TAG

public static final java.lang.String DATASOURCE_TYPE_TAG
The HTML Tag for the type of datasource to use.

See Also:
Constant Field Values

DATASOURCE_DATA_TAG

public static final java.lang.String DATASOURCE_DATA_TAG
The HTML Tag for the data for the particular datasource to use.

See Also:
Constant Field Values

DATASOURCE_TYPE_SHAPEFILE

public static final java.lang.String DATASOURCE_TYPE_SHAPEFILE
Known DataSource Types.

See Also:
Constant Field Values

DATASOURCE_TYPE_SEAMLESS

public static final java.lang.String DATASOURCE_TYPE_SEAMLESS
See Also:
Constant Field Values

DATASOURCE_TYPE_DB2SPATIAL

public static final java.lang.String DATASOURCE_TYPE_DB2SPATIAL
See Also:
Constant Field Values

DATASOURCE_TYPE_POSTGIS

public static final java.lang.String DATASOURCE_TYPE_POSTGIS
See Also:
Constant Field Values

DATASOURCE_TYPE_MYSQL

public static final java.lang.String DATASOURCE_TYPE_MYSQL
See Also:
Constant Field Values

DATASOURCE_TYPE_ORACLE

public static final java.lang.String DATASOURCE_TYPE_ORACLE
See Also:
Constant Field Values

DATASOURCE_TYPE_TERRASERVER

public static final java.lang.String DATASOURCE_TYPE_TERRASERVER
See Also:
Constant Field Values

DATASOURCE_TYPE_IMAGEFILE

public static final java.lang.String DATASOURCE_TYPE_IMAGEFILE
See Also:
Constant Field Values

DATASOURCE_TYPE_IMAGEDIRECTORY

public static final java.lang.String DATASOURCE_TYPE_IMAGEDIRECTORY
See Also:
Constant Field Values

DATASOURCE_TYPE_RASTERCATALOG

public static final java.lang.String DATASOURCE_TYPE_RASTERCATALOG
See Also:
Constant Field Values

DATASOURCE_TYPE_ERMAPPER

public static final java.lang.String DATASOURCE_TYPE_ERMAPPER
See Also:
Constant Field Values
Constructor Detail

DatasourceHandler

public DatasourceHandler()
Creates a new data source handler.

Method Detail

doGet

public static void doGet(Request inRequest,
                         Response inResponse,
                         Server inServer,
                         Service inService)
                  throws java.lang.Exception
handle requests.

Throws:
java.lang.Exception

showServicePage

public static void showServicePage(Request inRequest,
                                   Response inResponse,
                                   Server inServer,
                                   Service inService)
Show information only about the known data sources server. Perhaps in time, we can enhance this to support any datasource, not just the known ones.


showGetDatasourceData

public static void showGetDatasourceData(Request inRequest,
                                         Response inResponse,
                                         Server inServer,
                                         Service inService)
Show the information for the datasource the user has selected.


getDataSource

public static DataSource getDataSource(Request inRequest,
                                       Response inResponse,
                                       Server inServer,
                                       Service inService)
                                throws java.lang.Exception
Return the fully configured datasource for this particular data source type.

Throws:
java.lang.Exception