Ontimize Document Management 0.032EN

com.ontimize.dms.warehouse.remote
Class DownloadServer

java.lang.Object
  extended by com.ontimize.dms.warehouse.remote.ServerTransfer
      extended by com.ontimize.dms.warehouse.remote.DownloadServer
All Implemented Interfaces:
TransferModelEventListener

public abstract class DownloadServer
extends ServerTransfer


Field Summary
 
Fields inherited from class com.ontimize.dms.warehouse.remote.ServerTransfer
DEFAULT_OPEN_MAX, it, list, modelAdapter, MSG_INACTIVE_1, MSG_INACTIVE_2, MSG_INACTIVE_3
 
Constructor Summary
DownloadServer(java.lang.String pathBase, int inactInterval, int inactGap)
           
 
Method Summary
 IDataBlock downloadData(java.lang.String path, int sessionId)
           
 void fireModelEvent(TransferInfo event)
           
 boolean isActive(Document document, int sessionId)
           
 TransferResponse startDownload(Document document, java.lang.Number version, int sessionId, java.io.File fout, java.lang.Object lastModification)
           
 
Methods inherited from class com.ontimize.dms.warehouse.remote.ServerTransfer
addModelListener, getBasePath, getTempPath, haveToUpdate, inactivityVerification, isOverload, removeModelListener, setOpenMax, setTransferTrace, stop, transferFinish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadServer

public DownloadServer(java.lang.String pathBase,
                      int inactInterval,
                      int inactGap)
Method Detail

startDownload

public TransferResponse startDownload(Document document,
                                      java.lang.Number version,
                                      int sessionId,
                                      java.io.File fout,
                                      java.lang.Object lastModification)
                               throws java.lang.Exception
Throws:
java.lang.Exception

downloadData

public IDataBlock downloadData(java.lang.String path,
                               int sessionId)
                        throws java.lang.Exception
Throws:
java.lang.Exception

isActive

public boolean isActive(Document document,
                        int sessionId)
                 throws java.lang.Exception
Specified by:
isActive in class ServerTransfer
Throws:
java.lang.Exception

fireModelEvent

public void fireModelEvent(TransferInfo event)
Specified by:
fireModelEvent in interface TransferModelEventListener
Overrides:
fireModelEvent in class ServerTransfer

Ontimize Document Management