Package thredds.server.admin
Class HtmlWriting
java.lang.Object
thredds.server.admin.HtmlWriting
Provide methods to write HTML representations of a catalog, directory, or CDM dataset to an HTTP response.
LOOK get rid of
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidappendOldStyleHeader(StringBuilder sb, String webappName, String webappUrl, String logoAlt, String logoUrl, String installName, String installUrl, String hostName, String hostUrl) voidintwriteDirectory(jakarta.servlet.http.HttpServletResponse res, File dir, String path) Write a file directory.
-
Constructor Details
-
HtmlWriting
public HtmlWriting()
-
-
Method Details
-
getHtmlDoctypeAndOpenTag
-
getGoogleTrackingContent
-
getTdsCatalogCssLink
-
getTdsPageCssLink
-
getUserHead
-
getOldStyleHeader
-
appendOldStyleHeader
-
appendOldStyleHeader
-
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- directorypath- 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.
-