@Component(value="TdsContext")
public final class TdsContext
extends java.lang.Object
implements org.springframework.web.context.ServletContextAware, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
LOOK would be nice to make Immutable
| Constructor and Description |
|---|
TdsContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
java.lang.String |
getConfigFileProperty() |
java.io.File |
getContentRootDir() |
java.lang.String |
getContentRootPathProperty() |
java.lang.String |
getContextPath()
Return the context path under which this web app is running (e.g., "/thredds").
|
javax.servlet.RequestDispatcher |
getDefaultRequestDispatcher() |
java.io.File |
getDownloadDir() |
java.io.File |
getDownloadForm() |
java.io.File |
getPropertyDir(java.lang.String prop,
java.lang.String key,
boolean create) |
java.io.File |
getPropertyFile(java.lang.String prop,
java.lang.String key,
boolean writeable) |
FileSource |
getPublicContentDirSource() |
javax.servlet.ServletContext |
getServletContext() |
java.io.File |
getServletRootDirectory()
Return the web apps root directory (i.e., getRealPath( "/")).
|
java.lang.String |
getTdsDebugFlags() |
java.lang.String |
getTdsVersionBuildDate() |
java.io.File |
getThreddsDirectory()
Return File for content directory (exists() may be false).
|
java.io.File |
getTomcatLogDirectory() |
java.io.File |
getUploadDir() |
java.io.File |
getUploadForm() |
java.lang.String |
getVersionInfo() |
java.lang.String |
getWebappDisplayName() |
java.lang.String |
getWebappVersion()
Return the full version string (
|
void |
setContentRootPathProperty(java.lang.String contentRootPathProperty) |
void |
setDownloadDirProperty(java.lang.String downloadDirProperty) |
void |
setDownloadFormProperty(java.lang.String downloadFormProperty) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
setUploadDirProperty(java.lang.String uploadDirProperty) |
void |
setUploadFormProperty(java.lang.String uploadFormProperty) |
java.lang.String |
toString() |
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwarepublic javax.servlet.ServletContext getServletContext()
public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getContextPath()
public java.lang.String getWebappVersion()
public java.lang.String getTdsVersionBuildDate()
public java.lang.String getVersionInfo()
public java.lang.String getWebappDisplayName()
public java.io.File getServletRootDirectory()
public java.io.File getTomcatLogDirectory()
public java.io.File getThreddsDirectory()
public java.io.File getContentRootDir()
public FileSource getPublicContentDirSource()
public javax.servlet.RequestDispatcher getDefaultRequestDispatcher()
public java.lang.String getContentRootPathProperty()
public java.lang.String getConfigFileProperty()
public java.io.File getUploadDir()
public java.io.File getDownloadDir()
public java.io.File getUploadForm()
public java.io.File getDownloadForm()
public java.lang.String getTdsDebugFlags()
public void setContentRootPathProperty(java.lang.String contentRootPathProperty)
public void setUploadDirProperty(java.lang.String uploadDirProperty)
public void setDownloadDirProperty(java.lang.String downloadDirProperty)
public void setUploadFormProperty(java.lang.String uploadFormProperty)
public void setDownloadFormProperty(java.lang.String downloadFormProperty)
public java.io.File getPropertyDir(java.lang.String prop,
java.lang.String key,
boolean create)
public java.io.File getPropertyFile(java.lang.String prop,
java.lang.String key,
boolean writeable)