The upcloo sdk for java baseline application
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src/com/upcloo/client
tests
.gitignore
README.md

README.md

UpCloo Java SDK

The java SDK is actually completely unstable and you have to consider this library as it is, unstable.

Example of usage

In the example below we get the singleton instance for UpCloo manager.

Manager manager = Manager.getInstance();
manager.setCredential("username", "password", "sitekey");

Indexing contents

Consider that document is an instace of com.upcloo.client.model.indexer.Doc.

Doc document = new Doc();
document.setId("35897");
document.setTitle("This is the title");

manager.index(document);

Retriving contents

Consider that documents is an instance of com.upcloo.client.model.getter.Docs

Docs documents  = manager.get("35897");

Requirements

This library needs different library listed below.

  • Apache HTTP Client

Under lib folder you can see the complete dependency list.

Running tests

If you want run tests simply using junit. All tests are under tests folder.