@Component @RequestMapping(value="**") public class LocalCatalogServiceController extends Object
Can also handle non-catalog requests for XML andHTML files in publicDoc FileSource.
Currently, handles the following TDS requests:
Note: When "/catalog/*" request paths end in "/", a suffix is appended
to the path. The suffix default value is "catalog.html" but can be set in
LocalCatalogRequestDataBinder.
Uses the following information from an HTTP request:
TdsPathUtils.extractPath().Command; Constraints on the above information:
The above information is contained in a LocalCatalogRequest
command object, default values are set during binding by
LocalCatalogRequestDataBinder), and constraints are enforced by
LocalCatalogRequestValidator.
thredds.util.TdsPathUtils#extractPath(javax.servlet.http.HttpServletRequest),
LocalCatalogRequest,
LocalCatalogRequestDataBinder,
LocalCatalogRequestValidator| Constructor and Description |
|---|
LocalCatalogServiceController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<String> |
handle(FileNotFoundException ncsse) |
protected org.springframework.web.servlet.ModelAndView |
handleHtmlRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected org.springframework.web.servlet.ModelAndView |
handleXmlRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
isCatalogSupportOnly() |
void |
setCatalogSupportOnly(boolean catalogSupportOnly) |
public boolean isCatalogSupportOnly()
public void setCatalogSupportOnly(boolean catalogSupportOnly)
@RequestMapping(value="**/*.xml",
method=GET)
protected org.springframework.web.servlet.ModelAndView handleXmlRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@RequestMapping(value="**/*.html",
method=GET)
protected org.springframework.web.servlet.ModelAndView handleHtmlRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
Exception@ExceptionHandler(value=java.io.FileNotFoundException.class) public org.springframework.http.ResponseEntity<String> handle(FileNotFoundException ncsse)
Copyright © 1999–2013 UCAR/Unidata. All rights reserved.