public class JplQuikSCAT extends DqcHandler
| Modifier and Type | Field and Description |
|---|---|
protected SelectFromRange |
allowedDateRange |
protected SelectFromRange |
allowedLongitudeRange |
protected Comparator |
comparator |
protected String |
dqcServletUrl |
protected String |
epochStartDateTimeString |
protected JplQuikScatDodsFileServer |
jplQsDfs
Information about the JPL QuikSCAT DFS catalog.
|
protected JplQuikScatCalendar |
jplQuikScatCalendar |
protected List |
resultSortedList |
| Constructor and Description |
|---|
JplQuikSCAT() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToResultsList(JplQuikScatEntry entry,
Comparator comparator)
Add the given entry to the results list.
|
protected InvCatalog |
buildCatalogFromRequest(String requestedDateRangeStart,
String requestedDateRangeEnd,
String requestedLongitudeRangeStart,
String requestedLongitudeRangeEnd)
Given the request parameters as strings, return an InvCatalog.
|
protected InvCatalog |
createCatalog(List entries) |
protected QueryCapability |
createDqcDocument(String baseURI) |
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)
JplQuikSCAT implementation of the DqcHandler initialization method.
|
protected boolean |
validateRequest(JplQuikScatUserQuery request)
Return true if given request is valid (i.e., the request values are within the
allowed ranges), otherwise, return false.
|
factory, getHandlerInfo, setHandlerInfoprotected String dqcServletUrl
protected JplQuikScatDodsFileServer jplQsDfs
protected SelectFromRange allowedDateRange
protected SelectFromRange allowedLongitudeRange
protected List resultSortedList
protected Comparator comparator
protected String epochStartDateTimeString
protected JplQuikScatCalendar jplQuikScatCalendar
public void initWithHandlerConfigDoc(URL configDocURL) throws IOException
initWithHandlerConfigDoc in class DqcHandlerconfigDocURL - - a URL to the config doc for this DqcHandler, not used (null) for this handler.IOException - if trouble reading config document.IllegalArgumentException - if config document does not contain the needed information.public 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.protected QueryCapability createDqcDocument(String baseURI)
protected InvCatalog buildCatalogFromRequest(String requestedDateRangeStart, String requestedDateRangeEnd, String requestedLongitudeRangeStart, String requestedLongitudeRangeEnd) throws IOException
requestedDateRangeStart - - the minimum point of the requested Date range (a string of a float in seconds since 1999-01-01).requestedDateRangeEnd - - the minimum point of the requested Date range (a string of a float in seconds since 1999-01-01).requestedLongitudeRangeStart - - the minimum point of the requested Longitude range (a string of a float in degrees east).requestedLongitudeRangeEnd - - the maximum point of the requested Longitude range (a string of a float in degrees east).IOException - if reading information from backing store fails.IllegalArgumentException - if the request parameters are invalid.protected boolean validateRequest(JplQuikScatUserQuery request)
request - - The user request.NullPointerException - if the given request is a null pointer.protected void addToResultsList(JplQuikScatEntry entry, Comparator comparator)
protected InvCatalog createCatalog(List entries)
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.