treebolic.site
Class FtpSiteMaker

java.lang.Object
  extended by java.util.Observable
      extended by treebolic.site.SiteMaker
          extended by treebolic.site.FtpSiteMaker

public class FtpSiteMaker
extends SiteMaker

FTP site maker

Author:
Bernard Bou

Field Summary
private  FtpClientX theClient
          FTP client
private  java.lang.String theDirectory
          Server directory
private  java.lang.String theLogin
          Server login
private  java.lang.String thePassword
          Server login password
private  java.lang.String theServer
          Server
 
Fields inherited from class treebolic.site.SiteMaker
PROGRESSCOMPLETE, PROGRESSCONNECT, PROGRESSCONNECTCOMPLETE, PROGRESSDISCONNECT, PROGRESSXFERDTD, PROGRESSXFERHTML, PROGRESSXFERIMAGES, PROGRESSXFERJAR, PROGRESSXFERXML, PROGRESSZERO, theHtmlFile, theOperation, theTemplateFile, theXmlFile
 
Constructor Summary
FtpSiteMaker(org.w3c.dom.Document thisDocument, java.lang.String thisRepository, java.lang.String thisImageRepository, java.lang.String thisHtmlFile, java.lang.String thisXmlFile, java.lang.String thisTitle, java.lang.String thisServer, java.lang.String thisDirectory, java.lang.String thisLogin, java.lang.String thisPassword)
          Constructor
 
Method Summary
 boolean changeFolder(java.lang.String thisRelativeDirectory)
          Change folder
 boolean connect()
          Connect to destination
 boolean disconnect()
          Disconnect from destination
 java.io.OutputStream makeOutStream(java.lang.String thisString)
          Make output stream
 
Methods inherited from class treebolic.site.SiteMaker
make, notifyOperation
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theServer

private java.lang.String theServer
Server


theDirectory

private java.lang.String theDirectory
Server directory


theLogin

private java.lang.String theLogin
Server login


thePassword

private java.lang.String thePassword
Server login password


theClient

private FtpClientX theClient
FTP client

Constructor Detail

FtpSiteMaker

public FtpSiteMaker(org.w3c.dom.Document thisDocument,
                    java.lang.String thisRepository,
                    java.lang.String thisImageRepository,
                    java.lang.String thisHtmlFile,
                    java.lang.String thisXmlFile,
                    java.lang.String thisTitle,
                    java.lang.String thisServer,
                    java.lang.String thisDirectory,
                    java.lang.String thisLogin,
                    java.lang.String thisPassword)
             throws java.net.URISyntaxException,
                    java.io.IOException
Constructor

Parameters:
thisDocument - DOM document (source)
thisRepository - repository (source)
thisImageRepository - image repository (source)
thisHtmlFile - HTML file (target)
thisXmlFile - XML file (target)
thisTitle - HTML page title (target)
thisServer - server (target)
thisDirectory - server directory (target)
thisLogin - server login (target)
thisPassword - server login password (target)
Throws:
java.net.URISyntaxException
java.io.IOException
Method Detail

makeOutStream

public java.io.OutputStream makeOutStream(java.lang.String thisString)
                                   throws java.net.MalformedURLException,
                                          java.io.IOException
Description copied from class: SiteMaker
Make output stream

Specified by:
makeOutStream in class SiteMaker
Parameters:
thisString - filename
Returns:
output stream
Throws:
java.net.MalformedURLException
java.io.IOException

connect

public boolean connect()
Description copied from class: SiteMaker
Connect to destination

Specified by:
connect in class SiteMaker
Returns:
true if successful

disconnect

public boolean disconnect()
Description copied from class: SiteMaker
Disconnect from destination

Specified by:
disconnect in class SiteMaker
Returns:
true if successful

changeFolder

public boolean changeFolder(java.lang.String thisRelativeDirectory)
Description copied from class: SiteMaker
Change folder

Specified by:
changeFolder in class SiteMaker
Parameters:
thisRelativeDirectory - relative folder
Returns:
true if successful