com.raritantechnologies.utils.network
Class FTPPageImportRenderer

java.lang.Object
  extended bycom.raritantechnologies.searchApp.taglibrary.PageImportRenderer
      extended bycom.raritantechnologies.utils.network.FTPPageImportRenderer
All Implemented Interfaces:
IConfigurable, IPageContextRenderer

public class FTPPageImportRenderer
extends PageImportRenderer

PageImportRenderer that obtains page fragments from an FTP source.

XML Configuration Template:
   <SystemObject type="PageImportRenderer" name="[The SysObject Name]"
                    configurableClass="com.raritantechnologies.utils.network.FTPPageImportRenderer"
                    FTPServer="[ FTP server URL ]"
                    username="[ username on FTP account ]"
                    password="[ password on FTP account ]"
                    passwordEnc="[ Encrypted password ]" 
                    filenameParameter="[ HTTP request parameter containing file name ]" >

    <!-- Optional StringFilter to transform FTP file for display -->
    <StringFilter class="[ class of com.raritantechnologies.utils.filter.IStringFilter ]" >

    </StringFilter>

   </SystemObject>
 

Developed by Raritan Technologies .

Author:
Ted Sullivan

Nested Class Summary
 
Nested classes inherited from class com.raritantechnologies.searchApp.taglibrary.PageImportRenderer
PageImportRenderer.PageElement
 
Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.taglibrary.PageImportRenderer
caching
 
Constructor Summary
FTPPageImportRenderer()
           
 
Method Summary
 java.lang.String getPage(RaritanPageContext pContext)
          returns an HTML page or page fragment given a set of request parameters.
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 
Methods inherited from class com.raritantechnologies.searchApp.taglibrary.PageImportRenderer
addPageElement, getAddPersistent, getConfigurationXML, getFragmentFile, getPageHeader, getPageName, getPageTrailer, render, setAddPersistent, setPageHeader, setPageName, setPageTrailer, setStringFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPPageImportRenderer

public FTPPageImportRenderer()
Method Detail

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 IConfigurable
Overrides:
initialize in class PageImportRenderer

getPage

public java.lang.String getPage(RaritanPageContext pContext)
Description copied from class: PageImportRenderer
returns an HTML page or page fragment given a set of request parameters.

Overrides:
getPage in class PageImportRenderer
Parameters:
pContext - contains request and session parameters needed to execute the page retrieval.
Returns:
A string containing the page data.