Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.1 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.1 KB

webfiles-framework-java

Build status

Remote datastore: First Steps

Remote datastore: Basic Usecases

Read from RemoteDatastore

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"));