public class FtpStorage extends FileBasedStorage
FileBasedStorage.VersionInfo
ModelStorage.Types
config, httpAccessPath
Constructor and Description |
---|
FtpStorage() |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
protected InputStream |
getFile(String path) |
String |
getFtpPass() |
URL |
getFtpUrl() |
String |
getFtpUser() |
void |
initConnection() |
protected void |
linkFiles(String sourcePath,
String targetPath) |
protected void |
makeDirs(String path) |
void |
setFtpPass(String ftpPass) |
void |
setFtpUrl(URL ftpUrl) |
void |
setFtpUser(String ftpUser) |
protected void |
storeFile(InputStream source,
String path) |
protected void |
storeFile(InputStream source,
String path,
boolean override) |
close, connect, getHttpAccessPath, linkModelVersion, setHttpAccessPath, storeModel
storeModelChangeSet
public void initConnection() throws StorageException
initConnection
in class FileBasedStorage
StorageException
public void closeConnection()
closeConnection
in class FileBasedStorage
protected void makeDirs(String path) throws StorageException
makeDirs
in class FileBasedStorage
StorageException
protected void storeFile(InputStream source, String path)
storeFile
in class FileBasedStorage
protected InputStream getFile(String path)
getFile
in class FileBasedStorage
protected void linkFiles(String sourcePath, String targetPath) throws StorageException
linkFiles
in class FileBasedStorage
StorageException
public URL getFtpUrl()
public void setFtpUrl(URL ftpUrl)
public String getFtpUser()
public void setFtpUser(String ftpUser)
public String getFtpPass()
public void setFtpPass(String ftpPass)
protected void storeFile(InputStream source, String path, boolean override) throws StorageException
storeFile
in class FileBasedStorage
StorageException
Copyright © 2019 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.