@Component public final class TdsContext extends Object implements org.springframework.web.context.ServletContextAware, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
FileSource |
getConfigFileSource() |
File |
getContentDirectory()
Return File for content directory (exists() may be false).
|
String |
getContextPath()
Return the context path under which this web app is running (e.g., "/thredds").
|
javax.servlet.RequestDispatcher |
getDefaultRequestDispatcher() |
HtmlConfig |
getHtmlConfig() |
File |
getIddContentDirectory() |
javax.servlet.RequestDispatcher |
getJspRequestDispatcher() |
File |
getMotherlodeContentDirectory() |
FileSource |
getPublicDocFileSource() |
File |
getRootDirectory()
Return the web apps root directory (i.e., getRealPath( "/")).
|
TdsServerInfo |
getServerInfo() |
javax.servlet.ServletContext |
getServletContext() |
File |
getStartupContentDirectory()
Return File for the initial content directory.
|
String |
getTdsConfigFileName() |
File |
getTomcatLogDirectory()
Return the tomcat logging directory
|
String |
getVersionInfo() |
String |
getWebappName()
Return the name of the webapp as given by the display-name element in web.xml.
|
String |
getWebappVersion()
Return the full version string (
|
String |
getWebappVersionBuildDate() |
String |
getWebinfPath()
Return the context path under which this web app is running (e.g., "/thredds").
|
WmsConfig |
getWmsConfig() |
void |
setContentPath(String contentPath) |
void |
setContentRootPath(String contentRootPath) |
void |
setHtmlConfig(HtmlConfig htmlConfig) |
void |
setIddContentPath(String iddContentPath) |
void |
setMotherlodeContentPath(String motherlodeContentPath) |
void |
setServerInfo(TdsServerInfo serverInfo) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
setStartupContentPath(String startupContentPath) |
void |
setTdsConfigFileName(String filename) |
void |
setWebappVersion(String verFull) |
void |
setWebappVersionBuildDate(String buildDateString) |
void |
setWmsConfig(WmsConfig wmsConfig) |
public void setWebappVersion(String verFull)
public void setWebappVersionBuildDate(String buildDateString)
public void setContentRootPath(String contentRootPath)
public void setContentPath(String contentPath)
public void setStartupContentPath(String startupContentPath)
public void setIddContentPath(String iddContentPath)
public void setMotherlodeContentPath(String motherlodeContentPath)
public void setTdsConfigFileName(String filename)
public String getTdsConfigFileName()
public void setServerInfo(TdsServerInfo serverInfo)
public TdsServerInfo getServerInfo()
public void setHtmlConfig(HtmlConfig htmlConfig)
public HtmlConfig getHtmlConfig()
public WmsConfig getWmsConfig()
public void setWmsConfig(WmsConfig wmsConfig)
public void destroy()
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic String getWebappName()
public String getContextPath()
public String getWebinfPath()
public String getWebappVersion()
public String getWebappVersionBuildDate()
public String getVersionInfo()
public File getRootDirectory()
public File getTomcatLogDirectory()
public File getContentDirectory()
public File getStartupContentDirectory()
public File getIddContentDirectory()
public File getMotherlodeContentDirectory()
public FileSource getConfigFileSource()
public FileSource getPublicDocFileSource()
public javax.servlet.RequestDispatcher getDefaultRequestDispatcher()
public javax.servlet.RequestDispatcher getJspRequestDispatcher()
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwarepublic javax.servlet.ServletContext getServletContext()
Copyright © 1999-2013 UCAR/Unidata. All Rights Reserved.