public class RemoteClient
extends java.lang.Object
Constructor | Description |
---|---|
RemoteClient(java.lang.String url,
java.lang.String user,
java.lang.String password,
long timeout) |
Modifier and Type | Method | Description |
---|---|---|
void |
download(FSCRDBComponent component,
java.io.File folder) |
Download a single component's resources.
|
com.zfabrik.hubcr.RemoteComponentRepositoryDB |
fetchDBUpdate(java.lang.Long rev) |
Fetch a DB revision from remote.
|
public RemoteClient(java.lang.String url, java.lang.String user, java.lang.String password, long timeout)
public void download(FSCRDBComponent component, java.io.File folder) throws java.io.IOException
The used URL is
<base>/z_remotecr/download?component=<component>&<rev>
component
- folder
- java.io.IOException
public com.zfabrik.hubcr.RemoteComponentRepositoryDB fetchDBUpdate(java.lang.Long rev) throws java.lang.Exception
null
, if there is no more up
to date revision available than the one passed in.
The used URL is
<base>/z_remotecr/getDB?rev=<rev>
The remote side is expected to either deliver a serialized RemoteComponentRepositoryDB
or a status code 304 (not modified).
rev
- Revision requestedjava.lang.Exception