@Component public class HtmlWriter extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
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 |
appendTableHeader(StringBuilder stringBuilder,
boolean includeInstall,
boolean includeWebapp,
boolean includeLogos) |
String |
getHtmlDoctypeAndOpenTag() |
static HtmlWriter |
getInstance() |
String |
getOldStyleHeader() |
String |
getTdsCatalogCssLink() |
String |
getTdsPageCssLink() |
String |
getUserCSS() |
String |
getUserHead() |
String |
getXHtmlDoctypeAndOpenTag() |
void |
setHtmlConfig(HtmlConfig htmlConfig) |
void |
setSingleton(HtmlWriter self) |
void |
setTdsContext(TdsContext tdsContext) |
void |
showCDM(javax.servlet.http.HttpServletResponse res,
NetcdfDataset ds)
Show CDM compliance (coordinate systems, etc) of a NetcdfDataset.
|
int |
showDataset(String catURL,
InvDatasetImpl 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,
InvCatalogImpl cat,
boolean isLocalCatalog)
Write an InvCatalogImpl to the HttpServletResponse, return the size in bytes of the catalog written to the response.
|
int |
writeDirectory(javax.servlet.http.HttpServletResponse res,
File dir,
String path)
Write a file directory.
|
public void setTdsContext(TdsContext tdsContext)
public void setHtmlConfig(HtmlConfig htmlConfig)
public void setSingleton(HtmlWriter self)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic static HtmlWriter getInstance()
public String getHtmlDoctypeAndOpenTag()
public String getXHtmlDoctypeAndOpenTag()
public String getUserCSS()
public String getTdsCatalogCssLink()
public String getTdsPageCssLink()
public String getUserHead()
public String getOldStyleHeader()
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 appendTableHeader(StringBuilder stringBuilder, boolean includeInstall, boolean includeWebapp, boolean includeLogos)
public int writeDirectory(javax.servlet.http.HttpServletResponse res,
File dir,
String path)
throws IOException
res - the HttpServletResponse on which to write the file directory response.dir - directorypath - the URL path reletive to the baseIOException - if an I/O exception occurs.public int writeCatalog(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
InvCatalogImpl 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, InvDatasetImpl dataset, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean isLocalCatalog) throws IOException
IOExceptionpublic void showCDM(javax.servlet.http.HttpServletResponse res,
NetcdfDataset ds)
throws IOException
ds - dataset to writeIOExceptionCopyright © 1999-2012 UCAR/Unidata. All Rights Reserved.