Package thredds.core
Class ConfigCatalogHtmlWriter
java.lang.Object
thredds.core.ConfigCatalogHtmlWriter
Write HTML representations of a Catalog or Dataset.
Used by both client and server.
- Since:
- 1/19/2015
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidappendOldStyleHeader(StringBuilder sb, String webappName, String webappUrl, String logoAlt, String logoUrl, String installName, String installUrl, String hostName, String hostUrl) voidstatic Stringstatic StringintshowDataset(String catURL, thredds.client.catalog.Dataset dataset, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean isLocalCatalog) intwriteCatalog(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, thredds.client.catalog.Catalog cat, boolean isLocalCatalog) Write a Catalog to the HttpServletResponse, return the size in bytes of the catalog written to the response.
-
Constructor Details
-
ConfigCatalogHtmlWriter
public ConfigCatalogHtmlWriter()
-
-
Method Details
-
getHtmlDoctypeAndOpenTag
-
getXHtmlDoctypeAndOpenTag
-
writeCatalog
public int writeCatalog(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, thredds.client.catalog.Catalog cat, boolean isLocalCatalog) throws IOException Write a Catalog to the HttpServletResponse, return the size in bytes of the catalog written to the response.- Parameters:
req- the HttpServletRequestres- the HttpServletResponse.cat- the InvCatalogImpl to write to the HttpServletResponse.isLocalCatalog- indicates whether this catalog is local to this server.- Returns:
- the size in bytes of the catalog written to the HttpServletResponse.
- Throws:
IOException- if problems writing the response.
-
showDataset
public int showDataset(String catURL, thredds.client.catalog.Dataset dataset, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean isLocalCatalog) throws IOException - Throws:
IOException
-
getUserCSS
-
getTdsCatalogCssLink
-
getTdsPageCssLink
-
getUserHead
-
appendOldStyleHeader
-
appendOldStyleHeader
-
getGoogleTrackingContent
-