Package thredds.server.admin
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 Summary
Constructors Constructor Description HtmlWriting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendOldStyleHeader(StringBuilder sb)voidappendOldStyleHeader(StringBuilder sb, String webappName, String webappUrl, String logoAlt, String logoUrl, String installName, String installUrl, String hostName, String hostUrl)voidappendSimpleFooter(StringBuilder sb)StringgetGoogleTrackingContent()StringgetHtmlDoctypeAndOpenTag()StringgetOldStyleHeader()StringgetTdsCatalogCssLink()StringgetTdsPageCssLink()StringgetUserHead()intwriteDirectory(javax.servlet.http.HttpServletResponse res, File dir, String path)Write a file directory.
-
-
-
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)
-
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(javax.servlet.http.HttpServletResponse res, File dir, String path) throws IOExceptionWrite a file directory.- Parameters:
res- the HttpServletResponse on which to write the file directory response.dir- directorypath- 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.
-
-