public interface DataServiceProvider
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DataServiceProvider.DatasetRequest
Contain information on the dataset request.
|
| Modifier and Type | Method and Description |
|---|---|
DataServiceProvider.DatasetRequest |
getRecognizedDatasetRequest(String path,
javax.servlet.http.HttpServletRequest req)
If this DataServiceProvider recognizes the request as a dataset request,
return the dataset path as a DatasetRequest object.
|
void |
handleRequestForDataset(DataServiceProvider.DatasetRequest dsReq,
CrawlableDataset crDs,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle a dataset request.
|
void |
handleUnrecognizedRequest(CrawlableDataset crDs,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle requests that are not recognized by this DataServiceProvider and
where the CrawlableDataset is not a collection.
|
void |
handleUnrecognizedRequestForCollection(CrawlableDataset crDs,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Handle requests that are not recognized by this DataServiceProvider and
where the CrawlableDataset is a collection.
|
DataServiceProvider.DatasetRequest getRecognizedDatasetRequest(String path, javax.servlet.http.HttpServletRequest req)
path - the request path.req - the request.void handleRequestForDataset(DataServiceProvider.DatasetRequest dsReq, CrawlableDataset crDs, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException
dsReq - the dataset request info, should be the output of getRecognizedDatasetRequest().crDs - the CrawlableDataset to be served (corresponds to the DatasetRequest path).req - the HttpServletRequestres - the HttpServletResponseIOException - if can't complete request due to IO problems.IllegalArgumentException - if the DatasetRequest is null or the CrawlableDataset is null.void handleUnrecognizedRequest(CrawlableDataset crDs, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException
crDs - the CrawlableDataset that corresponds to the request path.req - the HttpServletRequestres - the HttpServletResponseIOException - if the request can't be completed due to IO problems.void handleUnrecognizedRequestForCollection(CrawlableDataset crDs, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException
crDs - the CrawlableDataset that corresponds to the request path.req - the HttpServletRequestres - the HttpServletResponseIOException - if the request can't be completed due to IO problems.Copyright © 1999–2014 UCAR/Unidata. All rights reserved.