Class HtmlConfigBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHtmlConfigInfoToModel(Map<String, Object> model) Return the URL to the CSS file used for catalog HTML pages.Return the URL to the CSS file used for catalog HTML pages.Return the URL to the icon document used for datasets in HTML catalog views.Return the URL to the icon document used for folders in HTML catalog views.Return the config option that determines whether or not to DataSet JSON-LD elements are generated in the head of the html for direct datasets.Return the google tracking code for google analytics.Return the alternate text for the logo for the institution hosting this installation.Return the path to the logo file for the institution hosting this installation.Return the name of the institution hosting this TDS installation.Return the URL to a web page for the institution hosting this installation.Return the alternate text for the logo for this TDS installation.Return the path to the logo file for this TDS installation.Return the name of this TDS installation.Return the URL to the top level of this TDS installation.Return the URL to the CSS file used for the OPeNDAP access pages.Return the URL to the CSS file used for all non-catalog HTML pages.Return the config option that sets the default of whether or not to use remoteCatalogService for html representation of catalogRef's in client catalogs.Return the URL to the webapp documentation page.Return the alternate text for the webapp logo.Return the Url to the logo file for the webapp.Return the URL to the main web page for the webapp.voidinit(String webappName, String webappVersion, String webappVersionBuildDate, String webappContextPath) 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.voidsetCatalogCssUrl(String catalogCssUrl) voidsetDatasetCssUrl(String datasetCssUrl) voidsetDatasetIconAlt(String datasetIconAlt) voidsetDatasetIconUrl(String datasetIconUrl) voidsetFolderIconAlt(String folderIconAlt) voidsetFolderIconUrl(String folderIconUrl) voidsetGenerateDatasetJsonLD(Boolean generateDatasetJsonLD) voidsetGoogleTrackingCode(String googleTrackingCode) voidsetHostInstLogoAlt(String hostInstLogoAlt) voidsetHostInstLogoUrl(String hostInstLogoUrl) voidsetHostInstName(String hostInstName) voidsetHostInstUrl(String hostInstUrl) voidsetInstallLogoAlt(String installLogoAlt) voidsetInstallLogoUrl(String installLogoUrl) voidsetInstallName(String installName) voidsetInstallUrl(String installUrl) voidsetOpenDapCssUrl(String openDapCssUrl) voidsetPageCssUrl(String pageCssUrl) voidsetUseRemoteCatalogService(Boolean remoteCatalogService) voidsetWebappDocsUrl(String webappDocsUrl) voidsetWebappLogoAlt(String webappLogoAlt) voidsetWebappLogoUrl(String webappLogoUrl) voidsetWebappUrl(String webappUrl)
-
Constructor Details
-
HtmlConfigBean
public HtmlConfigBean()
-
-
Method Details
-
init
-
getWebappName
-
getWebappVersion
-
getWebappVersionBuildDate
-
getWebappContextPath
-
getWebappUrl
Return the URL to the main web page for the webapp.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the URL to the main web page for the webapp.
-
setWebappUrl
-
getWebappDocsUrl
Return the URL to the webapp documentation page.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the URL to the webapp documentation page.
-
setWebappDocsUrl
-
getWebappLogoUrl
Return the Url to the logo file for the webapp.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the path to the logo file for the webapp.
-
setWebappLogoUrl
-
getWebappLogoAlt
Return the alternate text for the webapp logo.- Returns:
- the alternate text for the webapp logo.
-
setWebappLogoAlt
-
getPageCssUrl
Return the URL to the CSS file used for all non-catalog HTML pages.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the Url to the CSS file used for all non-catalog HTML pages.
-
setPageCssUrl
-
getOpenDapCssUrl
Return the URL to the CSS file used for the OPeNDAP access pages.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the URL to the CSS file used for the OPeNDAP access pages.
-
setOpenDapCssUrl
-
getCatalogCssUrl
Return the URL to the CSS file used for catalog HTML pages.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the URL to the CSS file used for catalog HTML pages.
-
setCatalogCssUrl
-
getDatasetCssUrl
Return the URL to the CSS file used for catalog HTML pages.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the URL to the CSS file used for catalog HTML pages.
-
setDatasetCssUrl
-
getGoogleTrackingCode
Return the google tracking code for google analytics.- Returns:
- the google tracking code for google analytics.
-
setGoogleTrackingCode
-
getFolderIconUrl
Return the URL to the icon document used for folders in HTML catalog views.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the URL to the icon document used for folders in HTML catalog views.
-
setFolderIconUrl
-
getFolderIconAlt
-
setFolderIconAlt
-
getDatasetIconUrl
Return the URL to the icon document used for datasets in HTML catalog views.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the URL to the icon document used for datasets in HTML catalog views.
-
setDatasetIconUrl
-
getDatasetIconAlt
-
setDatasetIconAlt
-
getInstallName
Return the name of this TDS installation.- Returns:
- the name of this TDS installation.
-
setInstallName
-
getInstallUrl
Return the URL to the top level of this TDS installation.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the URL to the top level of this installation.
-
setInstallUrl
-
getInstallLogoUrl
Return the path to the logo file for this TDS installation.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the path to the logo file for this installation of the webapp.
-
setInstallLogoUrl
-
getInstallLogoAlt
Return the alternate text for the logo for this TDS installation.- Returns:
- the alternate text for the logo for this installation.
-
setInstallLogoAlt
-
getHostInstName
Return the name of the institution hosting this TDS installation.- Returns:
- the name of the institution hosting this TDS installation.
-
setHostInstName
-
getHostInstUrl
Return the URL to a web page for the institution hosting this installation.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the URL to a web page for the institution hosting this installation.
-
setHostInstUrl
-
getHostInstLogoUrl
Return the path to the logo file for the institution hosting this installation.Note: A relative URL is considered relative to the webapp context path. That is, it is relative to "http://server:port/thredds/".
- Returns:
- the path to the logo file for the institution hosting this installation.
-
setHostInstLogoUrl
-
getHostInstLogoAlt
Return the alternate text for the logo for the institution hosting this installation.- Returns:
- the alternate text for the logo for the institution hosting this installation.
-
setHostInstLogoAlt
-
getUseRemoteCatalogService
Return the config option that sets the default of whether or not to use remoteCatalogService for html representation of catalogRef's in client catalogs.- Returns:
- true: use remoteCatalogService, false: assume catalogRef's point to a TDS, so simply link the html url of the remote catalog.
-
setUseRemoteCatalogService
-
getGenerateDatasetJsonLD
Return the config option that determines whether or not to DataSet JSON-LD elements are generated in the head of the html for direct datasets.- Returns:
- true: generate json-ld, false: do not generate json-ld.
-
setGenerateDatasetJsonLD
-
prepareUrlStringForHtml
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. That is, if relative, it is relative to "http://server:port/thredds/".For simplicity, all relative URLs are converted to URLs that are absolute paths. For instance, "catalog.xml" becomes "/thredds/catalog.xml".
- Parameters:
url- the URL to prepare for use in HTML.- Returns:
- a URL ready to use in a generated HTML page.
-
addHtmlConfigInfoToModel
-