com.raritantechnologies.quickstart.userInterface
Class WatermarkingDocumentContentHandler

java.lang.Object
  extended bycom.raritantechnologies.quickstart.userInterface.DocumentContentHandlerFilter
      extended bycom.raritantechnologies.quickstart.userInterface.WatermarkingDocumentContentHandler
All Implemented Interfaces:
IConfigurable, IDocumentContentHandler, IProcessDocumentContentHandler

public class WatermarkingDocumentContentHandler
extends DocumentContentHandlerFilter

DocumentContentHandlerFilter that applies a watermark to the content retrieved by its proxy IDocumentContentHandler.

XML Configuration Template:
    <ContentHandler 
           contentType="[Quickstart content type]" 
           class="com.raritantechnologies.quickstart.userInterface.WatermarkingDocumentContentHandler" >

      <ContentHandler class="real content handler class" .../>

    </ContentHandler>
  

Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Field Summary
 
Fields inherited from class com.raritantechnologies.quickstart.userInterface.DocumentContentHandlerFilter
theHandler
 
Constructor Summary
WatermarkingDocumentContentHandler()
           
 
Method Summary
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
protected  byte[] processContent(java.io.ByteArrayOutputStream baos, RaritanPageContext rpc, java.lang.Integer queryID)
           
 
Methods inherited from class com.raritantechnologies.quickstart.userInterface.DocumentContentHandlerFilter
getErrorPage, getHandlerName, getLastContentType, getLastDocumentName, getLastDocumentParamMap, getRequestParameters, sendDocumentContent, sendDocumentContent, setDocumentContentHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatermarkingDocumentContentHandler

public WatermarkingDocumentContentHandler()
Method Detail

processContent

protected byte[] processContent(java.io.ByteArrayOutputStream baos,
                                RaritanPageContext rpc,
                                java.lang.Integer queryID)
Overrides:
processContent in class DocumentContentHandlerFilter

initialize

public void initialize(org.w3c.dom.Element elem)
Description copied from interface: IConfigurable
Initializes the object from an XML tag or element. This method is called by the Framework as part of the application initializtion. see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory. Configurable objects that are owned or contained by other configurable objects will be initialized in by the parent object.

Specified by:
initialize in interface IDocumentContentHandler
Overrides:
initialize in class DocumentContentHandlerFilter