Package thredds.core
Class ConfigCatalogHtmlWriter
- java.lang.Object
-
- thredds.core.ConfigCatalogHtmlWriter
-
@Component public class ConfigCatalogHtmlWriter extends Object
Write HTML representations of a Catalog or Dataset. Used by both client and server.- Since:
- 1/19/2015
-
-
Constructor Summary
Constructors Constructor Description ConfigCatalogHtmlWriter()
-
Method Summary
All Methods Static 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()static StringgetHtmlDoctypeAndOpenTag()StringgetTdsCatalogCssLink()StringgetTdsPageCssLink()StringgetUserCSS()StringgetUserHead()static StringgetXHtmlDoctypeAndOpenTag()intshowDataset(String catURL, thredds.client.catalog.Dataset dataset, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean isLocalCatalog)intwriteCatalog(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, thredds.client.catalog.Catalog cat, boolean isLocalCatalog)Write an Catalog to the HttpServletResponse, return the size in bytes of the catalog written to the response.
-
-
-
Method Detail
-
getHtmlDoctypeAndOpenTag
public static String getHtmlDoctypeAndOpenTag()
-
getXHtmlDoctypeAndOpenTag
public static String getXHtmlDoctypeAndOpenTag()
-
writeCatalog
public int writeCatalog(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, thredds.client.catalog.Catalog cat, boolean isLocalCatalog) throws IOExceptionWrite an Catalog to the HttpServletResponse, return the size in bytes of the catalog written to the response.- Parameters:
req- the HttpServletRequestres- the HttpServletResponse.cat- the InvCatalogImpl to write to the HttpServletResponse.isLocalCatalog- indicates whether this catalog is local to this server.- Returns:
- the size in bytes of the catalog written to the HttpServletResponse.
- Throws:
IOException- if problems writing the response.
-
showDataset
public int showDataset(String catURL, thredds.client.catalog.Dataset dataset, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean isLocalCatalog) throws IOException
- Throws:
IOException
-
getUserCSS
public String getUserCSS()
-
getTdsCatalogCssLink
public String getTdsCatalogCssLink()
-
getTdsPageCssLink
public String getTdsPageCssLink()
-
getUserHead
public String getUserHead()
-
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)
-
getGoogleTrackingContent
public String getGoogleTrackingContent()
-
-