Package dap4.d4ts

Class FrontPage

java.lang.Object
dap4.d4ts.FrontPage

public class FrontPage extends Object
Given a directory, return a front page of HTML that lists all of the files in that page.
  • Field Details

    • NO_VLEN

      protected static final boolean NO_VLEN
      See Also:
    • expatterns

      protected static final String[] expatterns
    • SOURCES

      protected static final dap4.d4ts.FrontPage.FileSource[] SOURCES
    • dap4TestServer

      public static String dap4TestServer
    • drq

      protected dap4.servlet.DapRequest drq
    • roots

      protected List<FrontPage.Root> roots
    • frontpage

      protected StringBuilder frontpage
  • Constructor Details

    • FrontPage

      public FrontPage(List<FrontPage.Root> rootinfo, dap4.servlet.DapRequest req) throws dap4.core.util.DapException
      Parameters:
      rootinfo - the file directory roots
      Throws:
      dap4.core.util.DapException
  • Method Details

    • buildFileList

      protected void buildFileList(FrontPage.Root rootinfo) throws dap4.core.util.DapException
      Throws:
      dap4.core.util.DapException
    • buildPage

      protected String buildPage() throws dap4.core.util.DapException
      Throws:
      dap4.core.util.DapException
    • initialPage

      protected StringBuilder initialPage(String testserver) throws IOException
      Throws:
      IOException
    • substitute

      protected void substitute(StringBuilder buf, String macro, String value)
    • sendtrace

      public static void sendtrace(dap4.servlet.DapRequest drq, Exception e)
    • sendtext

      public static void sendtext(dap4.servlet.DapRequest drq, String s)