- create a remote datastore via [https://github.com/sebastianmonzel/webfiles-framework-php/]
- add maven dependency to your
pom.xml
- make sure all webfile definitions used in the the datastore are locally available
- connect to your datastore
- save and read data from your datastore
MRemoteDatastore remoteDatastore = new MRemoteDatastore("http://www.sebastianmonzel.de/datastore/");
MWebfileStream webfilesAsStream = remoteDatastore.getWebfilesAsStream();
List<MWebfile> webfiles = webfilesAsStream.getWebfiles();
MSampleWebfile sampleWebfile = (MSampleWebfile) webfiles.get(0);
assertThat(sampleWebfile.getFirstname(), is("Sebastian"));
assertThat(sampleWebfile.getLastname(), is("Monzel"));