Class HtmlWriting

java.lang.Object
thredds.server.admin.HtmlWriting

@Component public class HtmlWriting extends Object
Provide methods to write HTML representations of a catalog, directory, or CDM dataset to an HTTP response. LOOK get rid of
  • Constructor Details

    • HtmlWriting

      public HtmlWriting()
  • Method Details

    • getHtmlDoctypeAndOpenTag

      public String getHtmlDoctypeAndOpenTag()
    • getGoogleTrackingContent

      public String getGoogleTrackingContent()
    • getTdsCatalogCssLink

      public String getTdsCatalogCssLink()
    • getTdsPageCssLink

      public String getTdsPageCssLink()
    • getUserHead

      public String getUserHead()
    • getOldStyleHeader

      public String getOldStyleHeader()
    • 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)
    • writeDirectory

      public int writeDirectory(jakarta.servlet.http.HttpServletResponse res, File dir, String path) throws IOException
      Write a file directory.
      Parameters:
      res - the HttpServletResponse on which to write the file directory response.
      dir - directory
      path - the URL path relative to the base
      Returns:
      the number of characters (Unicode code units) in the response.
      Throws:
      IOException - if an I/O exception occurs.