public class GdcWebDavApiWrapper extends Object implements GdcDataTransferAPI
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.httpclient.HttpClient |
client |
protected NamePasswordConfiguration |
config |
protected static String |
DEFAULT_ARCHIVE_NAME |
protected static String |
WEBDAV_URI |
| Constructor and Description |
|---|
GdcWebDavApiWrapper(NamePasswordConfiguration config)
Constructs the GoodData WebDav API Java wrapper
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getTransferLogs(String remoteDir)
GET the transfer logs from the FTP server
|
void |
transferDir(String archiveName)
WebDav transfers a local directory to the remote GDC WebDav server
|
protected static final String DEFAULT_ARCHIVE_NAME
protected static final String WEBDAV_URI
protected org.apache.commons.httpclient.HttpClient client
protected NamePasswordConfiguration config
public GdcWebDavApiWrapper(NamePasswordConfiguration config)
config - NamePasswordConfiguration object with the GDC name and password configurationpublic void transferDir(String archiveName) throws IOException
transferDir in interface GdcDataTransferAPIarchiveName - the name of the ZIP archive that is going to be transferredIOException - in case of IO issuespublic Map<String,String> getTransferLogs(String remoteDir) throws IOException
getTransferLogs in interface GdcDataTransferAPIremoteDir - the primary transfer directory that contains the logsIOException - in case of IO issuesCopyright © 2014. All rights reserved.