Cisco Cisco Collaboration Server Dynamic Content Adapter Developer's Guide

Page of 138
DCA 2.01 Parser API Specification
 
Class HtmlDocument   32 
java.lang.String initialCharset, 
RequestData
 requestData)
  
          Creates and parses an Html document which may or may not be text.
 
   
Method Summary
 
 java.lang.String
 
getCharset
()
  
          Gets the charset attribute of the HtmlDocument object
 
 byte[]
 
getContent
()
  
          Returns the document as an unchanged byte array.
 
 java.lang.String
 
getFullHtml
(
RequestData
 requestData)
  
          Converts document object back to an HTML string for output 
to client, formatting links, etc.
 
static boolean
 
isContentTypeText
(java.lang.String contentType)
  
          Returns true if a content type is to be treated as text, 
according to configuration.
 
 void
 
setCharset
(java.lang.String charset)
  
          Sets the charset attribute of the HtmlDocument object
 
static void
 
setResponseCacheSize
(int cacheSize)
  
          Sets the size of the formatted response cache.
 
static void
 
setTextContentTypes
(com.cisco.util.MatchingGroup textTypes)
          Sets the textContentTypes attribute of the HtmlDocument 
class
 
 java.lang.String
 
toString
()
  
          Description of the Method
 
   
Methods inherited from class 
com.cisco.proxy.rules.LightweightHtmlDocument
 
getFullHtml, getFullHtml, getLinkColor, isSecure, isTextContent,