public class LatestDqcHandler extends DqcHandler
| Modifier and Type | Field and Description |
|---|---|
protected thredds.dqc.server.latest.LatestConfig |
config |
| Constructor and Description |
|---|
LatestDqcHandler()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
createCatalog(File mostRecentDs,
LatestConfig.Item reqItem) |
protected InvCatalogImpl |
createCatalog(String catName,
String dsName,
FeatureType dsType,
String serviceType,
String serviceName,
String serviceBaseURL,
String urlPath)
Generate a latest dataset catalog.
|
protected QueryCapability |
createDqcDocument(String baseURI) |
protected File |
findLatestDataset(LatestConfig.Item reqItem,
File[] allFiles) |
protected Date |
getDatasetDate(File theFile,
LatestConfig.Item reqItem)
Return the date of run time for the current dataset file.
|
void |
handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
This abstract method is used by the DqcServlet to generate an HttpServletResponse
from the given HttpServletRequest.
|
void |
initWithHandlerConfigDoc(URL configDocURL)
Read the configuration from the config doc.
|
String |
toString() |
factory, getHandlerInfo, setHandlerInfopublic void handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws IOException,
javax.servlet.ServletException
DqcHandlerhandleRequest in class DqcHandlerreq - res - IOException - if an input or output error is detected while the servlet handles the GET request.javax.servlet.ServletException - if the request can't be handled for some reason.public void initWithHandlerConfigDoc(URL configDocURL) throws IOException
initWithHandlerConfigDoc in class DqcHandlerconfigDocURL - - a URL to the DQC handler config document.IOException - if trouble reading config file.protected File findLatestDataset(LatestConfig.Item reqItem, File[] allFiles)
protected QueryCapability createDqcDocument(String baseURI)
protected InvCatalogImpl createCatalog(String catName, String dsName, FeatureType dsType, String serviceType, String serviceName, String serviceBaseURL, String urlPath)
protected String createCatalog(File mostRecentDs, LatestConfig.Item reqItem) throws IOException
IOExceptionprotected Date getDatasetDate(File theFile, LatestConfig.Item reqItem)
theFile - - the File representing the current dataset file.reqItem - - the LatestConfig.Item for the request.Copyright © 1999–2013 UCAR/Unidata. All rights reserved.