Package thredds.core

Class 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 Detail

      • ConfigCatalogHtmlWriter

        public ConfigCatalogHtmlWriter()
    • Method Detail

      • getHtmlDoctypeAndOpenTag

        public static String getHtmlDoctypeAndOpenTag()
      • getXHtmlDoctypeAndOpenTag

        public static String getXHtmlDoctypeAndOpenTag()
      • writeCatalog

        public int writeCatalog​(javax.servlet.http.HttpServletRequest req,
                                javax.servlet.http.HttpServletResponse res,
                                thredds.client.catalog.Catalog cat,
                                boolean isLocalCatalog)
                         throws IOException
        Write an 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,
                               javax.servlet.http.HttpServletRequest request,
                               javax.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)
      • appendSimpleFooter

        public void appendSimpleFooter​(StringBuilder sb)
      • getGoogleTrackingContent

        public String getGoogleTrackingContent()