@Controller
public class LocalCatalogServiceController
extends java.lang.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.
| Constructor and Description |
|---|
LocalCatalogServiceController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<java.lang.String> |
handle(java.io.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,HEAD})
protected org.springframework.web.servlet.ModelAndView handleXmlRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
java.lang.Exception@RequestMapping(value="/**/*.html",
method={GET,HEAD})
protected org.springframework.web.servlet.ModelAndView handleHtmlRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
java.lang.Exception@ExceptionHandler(value=java.io.FileNotFoundException.class) public org.springframework.http.ResponseEntity<java.lang.String> handle(java.io.FileNotFoundException ncsse)