Package thredds.core

Class ConfigCatalogHtmlWriter

java.lang.Object
thredds.core.ConfigCatalogHtmlWriter

@Component public class ConfigCatalogHtmlWriter extends Object
Write HTML representations of a Catalog or Dataset. Used by both client and server.
Since:
1/19/2015
  • Constructor Details

    • ConfigCatalogHtmlWriter

      public ConfigCatalogHtmlWriter()
  • Method Details

    • getHtmlDoctypeAndOpenTag

      public static String getHtmlDoctypeAndOpenTag()
    • getXHtmlDoctypeAndOpenTag

      public static String 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 HttpServletRequest
      res - 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

      public String getUserCSS()
    • getTdsCatalogCssLink

      public String getTdsCatalogCssLink()
    • getTdsPageCssLink

      public String getTdsPageCssLink()
    • getUserHead

      public String getUserHead()
    • appendOldStyleHeader

      public void appendOldStyleHeader(StringBuilder sb)
    • appendOldStyleHeader

      public void appendOldStyleHeader(StringBuilder sb, String webappName, String webappUrl, String logoAlt, String logoUrl, String installName, String installUrl, String hostName, String hostUrl)
    • appendSimpleFooter

      public void appendSimpleFooter(StringBuilder sb)
    • getGoogleTrackingContent

      public String getGoogleTrackingContent()