Class | Description |
---|---|
ICAT |
Represents a RESTful ICAT instance for testing
|
Session |
A RESTful ICAT session.
|
Enum | Description |
---|---|
IcatException.IcatExceptionType |
The type of the IcatException
|
Session.Attributes |
Control the attributes to be imported or exported
|
Session.DuplicateAction |
Control the action when a duplicate entry is encountered on import
|
Exception | Description |
---|---|
IcatException |
An ICAT Exception with various types
|
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.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.