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

      • HtmlWriting

        public HtmlWriting()
    • Method Detail

      • 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)
      • appendSimpleFooter

        public void appendSimpleFooter​(StringBuilder sb)
      • writeDirectory

        public int writeDirectory​(javax.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 reletive to the base
        Returns:
        the number of characters (Unicode code units) in the response.
        Throws:
        IOException - if an I/O exception occurs.