Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.38 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.38 KB

org.lappsgrid.client

The clients module provides SOAP clients for accessing LAPPS web services.

Build Status

Master Status Develop Status

Maven

Maven Central

<dependency>
    <groupId>org.lappsgrid</groupId>
    <artifactId>client</artifactId>
    <version>${see.above}</version>
</dependency>

DataSourceClient

The org.lappsgrid.client.DataSourceClient class provides several helper methods that parse the JSON returned by LAPPS web services into useful Java objects. To access a DataSourceClient you will need the URL of the service as well as the username and password for the service grid.

int size();
List<String> list();
List<String> list(int start, int end);
String get(String key);
void setToken(String token);

For example:

DataSourceClient client = new DataSourceClient(url, username, password);
client.setToken(my_oauth_token);
List<String> keys = client.list();
String text = client.get(keys.getAt(0));