public class HtmlConfig extends Object
| Constructor and Description |
|---|
HtmlConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHtmlConfigInfoToModel(Map<String,Object> model) |
String |
getCatalogCssUrl()
Return the URL to the CSS file used for catalog HTML pages.
|
String |
getDatasetIconAlt() |
String |
getDatasetIconUrl()
Return the URL to the icon document used for datasets in HTML catalog views.
|
String |
getFolderIconAlt() |
String |
getFolderIconUrl()
Return the URL to the icon document used for folders in HTML catalog views.
|
String |
getGoogleTrackingCode()
Return the google tracking code for google analytics.
|
String |
getHostInstLogoAlt()
Return the alternate text for the logo for the institution hosting this installation.
|
String |
getHostInstLogoUrl()
Return the path to the logo file for the institution hosting this installation.
|
String |
getHostInstName()
Return the name of the institution hosting this TDS installation.
|
String |
getHostInstUrl()
Return the URL to a web page for the institution hosting this installation.
|
String |
getInstallLogoAlt()
Return the alternate text for the logo for this TDS installation.
|
String |
getInstallLogoUrl()
Return the path to the logo file for this TDS installation.
|
String |
getInstallName()
Return the name of this TDS installation.
|
String |
getInstallUrl()
Return the URL to the top level of this TDS installation.
|
String |
getPageCssUrl()
Return the URL to the CSS file used for all non-catalog HTML pages.
|
String |
getWebappContextPath() |
String |
getWebappDocsUrl()
Return the URL to the webapp documentation page.
|
String |
getWebappLogoAlt()
Return the alternate text for the webapp logo.
|
String |
getWebappLogoUrl()
Return the Url to the logo file for the webapp.
|
String |
getWebappName() |
String |
getWebappUrl()
Return the URL to the main web page for the webapp.
|
String |
getWebappVersion() |
String |
getWebappVersionBuildDate() |
void |
init(String webappName,
String webappVersion,
String webappVersionBuildDate,
String webappContextPath) |
String |
prepareUrlStringForHtml(String url)
Return a URL ready to use in a generated HTML page from a URL that
is either absolute or relative to the webapp context path.
|
void |
setCatalogCssUrl(String catalogCssUrl) |
void |
setDatasetIconAlt(String datasetIconAlt) |
void |
setDatasetIconUrl(String datasetIconUrl) |
void |
setFolderIconAlt(String folderIconAlt) |
void |
setFolderIconUrl(String folderIconUrl) |
void |
setGoogleTrackingCode(String googleTrackingCode) |
void |
setHostInstLogoAlt(String hostInstLogoAlt) |
void |
setHostInstLogoUrl(String hostInstLogoUrl) |
void |
setHostInstName(String hostInstName) |
void |
setHostInstUrl(String hostInstUrl) |
void |
setInstallLogoAlt(String installLogoAlt) |
void |
setInstallLogoUrl(String installLogoUrl) |
void |
setInstallName(String installName) |
void |
setInstallUrl(String installUrl) |
void |
setPageCssUrl(String pageCssUrl) |
void |
setWebappDocsUrl(String webappDocsUrl) |
void |
setWebappLogoAlt(String webappLogoAlt) |
void |
setWebappLogoUrl(String webappLogoUrl) |
void |
setWebappUrl(String webappUrl) |
public void init(String webappName, String webappVersion, String webappVersionBuildDate, String webappContextPath)
public String getWebappName()
public String getWebappVersion()
public String getWebappVersionBuildDate()
public String getWebappContextPath()
public String getWebappUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setWebappUrl(String webappUrl)
public String getWebappDocsUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setWebappDocsUrl(String webappDocsUrl)
public String getWebappLogoUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setWebappLogoUrl(String webappLogoUrl)
public String getWebappLogoAlt()
public void setWebappLogoAlt(String webappLogoAlt)
public String getPageCssUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setPageCssUrl(String pageCssUrl)
public String getCatalogCssUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setCatalogCssUrl(String catalogCssUrl)
public String getGoogleTrackingCode()
public void setGoogleTrackingCode(String googleTrackingCode)
public String getFolderIconUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setFolderIconUrl(String folderIconUrl)
public String getFolderIconAlt()
public void setFolderIconAlt(String folderIconAlt)
public String getDatasetIconUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setDatasetIconUrl(String datasetIconUrl)
public String getDatasetIconAlt()
public void setDatasetIconAlt(String datasetIconAlt)
public String getInstallName()
public void setInstallName(String installName)
public String getInstallUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setInstallUrl(String installUrl)
public String getInstallLogoUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setInstallLogoUrl(String installLogoUrl)
public String getInstallLogoAlt()
public void setInstallLogoAlt(String installLogoAlt)
public String getHostInstName()
public void setHostInstName(String hostInstName)
public String getHostInstUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setHostInstUrl(String hostInstUrl)
public String getHostInstLogoUrl()
Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
public void setHostInstLogoUrl(String hostInstLogoUrl)
public String getHostInstLogoAlt()
public void setHostInstLogoAlt(String hostInstLogoAlt)
public String prepareUrlStringForHtml(String url)
For simplicity, all relative URLs are converted to URLs that are absolute paths. For instance, "catalog.xml" becomes "/thredds/catalog.xml".
url - the URL to prepare for use in HTML.Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.