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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFrontPage.Root
-
Field Summary
Fields Modifier and Type Field Description static Stringdap4TestServerprotected dap4.servlet.DapRequestdrqprotected static String[]expatternsprotected StringBuilderfrontpageprotected static booleanNO_VLENprotected List<FrontPage.Root>rootsprotected static dap4.d4ts.FrontPage.FileSource[]SOURCES
-
Constructor Summary
Constructors Constructor Description FrontPage(List<FrontPage.Root> rootinfo, dap4.servlet.DapRequest req)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildFileList(FrontPage.Root rootinfo)protected StringbuildPage()protected StringBuilderinitialPage(String testserver)static voidsendtext(dap4.servlet.DapRequest drq, String s)static voidsendtrace(dap4.servlet.DapRequest drq, Exception e)protected voidsubstitute(StringBuilder buf, String macro, String value)
-
-
-
Field Detail
-
NO_VLEN
protected static final boolean NO_VLEN
- See Also:
- Constant Field Values
-
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 Detail
-
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 Detail
-
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)
-
-