Package org.icatproject.icat.client

RESTFul ICAT Interface.

See: Description

Package org.icatproject.icat.client Description

RESTFul ICAT Interface.

To get started instantiate an ICAT with the URL of an ICAT server and call the login method on that ICAT. Subsequently make calls upon the Session.

For example:

    ICAT icat = new ICAT("https://example.com:8181"));

    Map credentials = new HashMap<>();
    credentials.put("username", "fred");
    credentials.put("password", "secret");
    Session session = icat.login("db", credentials);

    System.out.println(session.getUserName());
    System.out.println(session.getRemainingMinutes());
    System.out.println(session.search("Facility")
    session.logout();

Copyright © 2014 The ICAT Collaboration. All rights reserved.