public abstract class AbstractNcssController extends Object implements org.springframework.web.servlet.mvc.LastModified
| Modifier and Type | Field and Description |
|---|---|
protected GridDataset |
gridDataset |
protected static String |
NETCDF_FORMAT_NAME |
protected String |
requestPathInfo |
protected static String |
servletCachePath |
protected static String |
servletPath |
| Constructor and Description |
|---|
AbstractNcssController() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildCacheUrl(String fileName) |
GridDataset |
getGridDataset() |
long |
getLastModified(javax.servlet.http.HttpServletRequest req) |
protected List<CalendarDate> |
getRequestedDates(GridDataset gds,
RequestParamsBean params) |
String |
getRequestPathInfo() |
static String |
getServletCachePath() |
static String |
getServletPath() |
protected SupportedFormat |
getSupportedFormat(ParamsBean params,
thredds.server.ncSubset.controller.SupportedOperation operation) |
org.springframework.http.ResponseEntity<String> |
handle(NcssException ncsse) |
protected void |
handleValidationErrorsResponse(javax.servlet.http.HttpServletResponse response,
int status,
org.springframework.validation.BindingResult validationResult) |
protected GridDataset |
openGridDataset(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String pathInfo) |
protected void |
setResponseHeaders(javax.servlet.http.HttpServletResponse response,
org.springframework.http.HttpHeaders httpHeaders) |
protected static final String NETCDF_FORMAT_NAME
protected static final String servletPath
protected static final String servletCachePath
protected String requestPathInfo
protected GridDataset gridDataset
public String getRequestPathInfo()
public GridDataset getGridDataset()
protected List<CalendarDate> getRequestedDates(GridDataset gds, RequestParamsBean params) throws OutOfBoundariesException, ParseException, TimeOutOfWindowException
gds - params - OutOfBoundariesExceptionParseExceptionTimeOutOfWindowExceptionprotected void handleValidationErrorsResponse(javax.servlet.http.HttpServletResponse response,
int status,
org.springframework.validation.BindingResult validationResult)
protected void setResponseHeaders(javax.servlet.http.HttpServletResponse response,
org.springframework.http.HttpHeaders httpHeaders)
protected SupportedFormat getSupportedFormat(ParamsBean params, thredds.server.ncSubset.controller.SupportedOperation operation) throws UnsupportedResponseFormatException
protected GridDataset openGridDataset(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String pathInfo) throws IOException
IOException@ExceptionHandler(value=NcssException.class) public org.springframework.http.ResponseEntity<String> handle(NcssException ncsse)
public static final String getServletPath()
public static final String getServletCachePath()
public long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified in interface org.springframework.web.servlet.mvc.LastModifiedCopyright © 1999–2013 UCAR/Unidata. All rights reserved.