public class LocalCatalogServiceController
extends org.springframework.web.servlet.mvc.AbstractController
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.
TdsPathUtils.extractPath(javax.servlet.http.HttpServletRequest),
Command,
LocalCatalogRequest,
LocalCatalogRequestDataBinder,
LocalCatalogRequestValidator| Constructor and Description |
|---|
LocalCatalogServiceController() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
isCatalogSupportOnly() |
boolean |
isHtmlView() |
void |
setCatalogSupportOnly(boolean catalogSupportOnly) |
void |
setHtmlView(boolean htmlView) |
void |
setHtmlWriter(HtmlWriter htmlWriter) |
void |
setTdsContext(TdsContext tdsContext) |
handleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic void setTdsContext(TdsContext tdsContext)
public void setHtmlWriter(HtmlWriter htmlWriter)
public boolean isCatalogSupportOnly()
public void setCatalogSupportOnly(boolean catalogSupportOnly)
public boolean isHtmlView()
public void setHtmlView(boolean htmlView)
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractControllerExceptionCopyright © 1999–2014 UCAR/Unidata. All rights reserved.