com.livis.livingtalks.web
Class ExportWebImpl

java.lang.Object
  |
  +--com.livis.livingtalks.web.ExportWebImpl

public class ExportWebImpl
extends java.lang.Object


Constructor Summary
ExportWebImpl()
           
 
Method Summary
 void exportToFile(java.io.File file, java.io.Writer out)
           
 java.lang.String getExportName()
           
 java.lang.String getRequestPath()
           
 WebMenu getSources()
           
 java.lang.String getStorePath()
           
 void init()
           
 java.lang.String mkExportName()
           
 void processRequest(java.lang.String request, java.io.Writer out, java.lang.String user)
           
 void setExportName(java.lang.String exportName)
           
 void setRequestPath(java.lang.String requestPath)
          RequestPath is the URL base relative which all names of files read during publishing are interpreted to.
 void setStorePath(java.lang.String storePath)
          StorePath is the path prefix of all names of files to be stored or read during im- and export.
 void write(java.lang.String out)
           
 void write(java.io.Writer out)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportWebImpl

public ExportWebImpl()
Method Detail

init

public void init()

processRequest

public void processRequest(java.lang.String request,
                           java.io.Writer out,
                           java.lang.String user)

write

public void write(java.lang.String out)

write

public void write(java.io.Writer out)

exportToFile

public void exportToFile(java.io.File file,
                         java.io.Writer out)

getSources

public WebMenu getSources()
Returns:
a webmenu of filenames (listed with no suffix) found under storePath.
See Also:
getStorePath()

mkExportName

public java.lang.String mkExportName()
Returns:
a suitable name for a freshly created backup target

getExportName

public java.lang.String getExportName()

setExportName

public void setExportName(java.lang.String exportName)

setStorePath

public void setStorePath(java.lang.String storePath)
StorePath is the path prefix of all names of files to be stored or read during im- and export. This path should be an absolute file path prefix (not a file URL!) if the server's working directory is unknown. (Anything past the last "/", or "\\" resp., is ignored.)

getStorePath

public java.lang.String getStorePath()

setRequestPath

public void setRequestPath(java.lang.String requestPath)
RequestPath is the URL base relative which all names of files read during publishing are interpreted to. This path must be an absolute URL. It works like the HTML <base>-tag. (Anything past the last "/" is ignored.) RequestPath and StorePath must point to the same thing in browser, and server notations, resp.

getRequestPath

public java.lang.String getRequestPath()