|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
dods.servlet.DODSServlet
dods.servers.agg.CatalogServlet
public class CatalogServlet
This servlet uses an InventoryCatalog XML files to list what datasets it can serve. It can currently 1) serve netcdf files and 2) aggregate files into logical datasets using files from other DODS servers or from its own set of netcdf files. (It will be possible to serve other kinds of files later). The configuration file is kept in "$user_home/DODSagg.ini"; it should have one or both of the following sections:
[Catalog] catalogURL = the xml catalog URL maxDatasetsCached = number of datasets to cache; old ones are closed using an LRU algorithm. dataRoot = data root directory for netcdf files
Constructor Summary | |
---|---|
CatalogServlet()
|
Method Summary | |
---|---|
void |
doGetDIR(HttpServletRequest request,
HttpServletResponse response,
requestState rs)
dataset directory |
protected GuardedDataset |
getDataset(requestState preq)
dataset caching |
String |
getServerVersion()
This function must be implemented locally for each DODS server. |
void |
init()
Intitializes the servlet. |
protected void |
printCatalog(PrintWriter pw)
|
protected void |
printStatus(PrintWriter os)
|
Methods inherited from class dods.servlet.DODSServlet |
---|
anyExceptionHandler, badURL, dodsExceptionHandler, doGet, doGetASC, doGetCatalog, doGetDAS, doGetDDS, doGetDODS, doGetHELP, doGetHTML, doGetINFO, doGetStatus, doGetVER, getDAS, getServerName, isTheClientCompressed, openCachedDAS, openCachedDDS, parseExceptionHandler, probeRequest, processDodsURL, sendDODSError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CatalogServlet()
Method Detail |
---|
public void init() throws javax.servlet.ServletException
DODSServlet
init
in class DODSServlet
javax.servlet.ServletException
public String getServerVersion()
DODSServlet
getServerVersion
in class DODSServlet
protected void printCatalog(PrintWriter pw) throws IOException
printCatalog
in class DODSServlet
IOException
protected void printStatus(PrintWriter os) throws IOException
printStatus
in class DODSServlet
IOException
public void doGetDIR(HttpServletRequest request, HttpServletResponse response, requestState rs) throws IOException, ServletException
doGetDIR
in class DODSServlet
request
- The client's HttpServletRequest
request
object.response
- The server's HttpServletResponse
response
object.
IOException
ServletException
dodsDIR
protected GuardedDataset getDataset(requestState preq) throws DODSException, IOException, ParseException
getDataset
in class DODSServlet
DODSException
IOException
ParseException
ServerDDS
,
sqlServerFactory
,
test_ServerFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |