@Component public class ConfigCatalogHtmlWriter extends Object
| Constructor and Description |
|---|
ConfigCatalogHtmlWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendOldStyleHeader(StringBuilder sb) |
void |
appendOldStyleHeader(StringBuilder sb,
String webappName,
String webappUrl,
String logoAlt,
String logoUrl,
String installName,
String installUrl,
String hostName,
String hostUrl) |
void |
appendSimpleFooter(StringBuilder sb) |
String |
getGoogleTrackingContent() |
static String |
getHtmlDoctypeAndOpenTag() |
String |
getTdsCatalogCssLink() |
String |
getTdsPageCssLink() |
String |
getUserCSS() |
String |
getUserHead() |
static String |
getXHtmlDoctypeAndOpenTag() |
int |
showDataset(String catURL,
thredds.client.catalog.Dataset dataset,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean isLocalCatalog) |
int |
writeCatalog(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.
|
public static String getHtmlDoctypeAndOpenTag()
public static String getXHtmlDoctypeAndOpenTag()
public int writeCatalog(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
thredds.client.catalog.Catalog cat,
boolean isLocalCatalog)
throws IOException
req - the HttpServletRequestres - the HttpServletResponse.cat - the InvCatalogImpl to write to the HttpServletResponse.isLocalCatalog - indicates whether this catalog is local to this server.IOException - if problems writing the response.public int showDataset(String catURL, thredds.client.catalog.Dataset dataset, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean isLocalCatalog) throws IOException
IOExceptionpublic String getUserCSS()
public String getTdsCatalogCssLink()
public String getTdsPageCssLink()
public String getUserHead()
public void appendOldStyleHeader(StringBuilder sb)
public void appendOldStyleHeader(StringBuilder sb, String webappName, String webappUrl, String logoAlt, String logoUrl, String installName, String installUrl, String hostName, String hostUrl)
public void appendSimpleFooter(StringBuilder sb)
public String getGoogleTrackingContent()