You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,23 +37,23 @@ The log4j.properties file of the tests can help you with the logger configuratio
37
37
38
38
1.4 USAGE
39
39
-----------------
40
-
The tests defined in the class **InfrastructureManagerApiClientTest** show how to use the im-java-api.
40
+
The tests defined in the class **InfrastructureManagerTest** show how to use the im-java-api.
41
41
Also check the following lines to see some examples of use:
42
42
43
43
### 1.4.1 Create the API client
44
44
```
45
-
InfrastructureManagerApiClient imClient = new InfrastructureManagerApiClient("IM_ENDPOINT", "AUTH_FILE_PATH");
45
+
InfrastructureManager im = new InfrastructureManager("IM_ENDPOINT", "AUTH_FILE_PATH");
46
46
```
47
-
When creating a new client you have to specify a valid IM URL, and an authorization file path with the credentials required for the infrastrcture deployment.
47
+
When creating a new client you have to specify a valid IM URL, and an authorization file path with the credentials required for the infrastructure deployment.
48
48
More information about the authorization file can be found here: [Auth file](http://www.grycap.upv.es/im/doc/client.html#auth-file).
49
49
You can also check the authorization file used for the tests that is available in 'src/test/resources/'.
The **ServiceResponse** class returned by the **createInfrastructure** method contains all the information of the web service response. Check the **ServiceResponse**class methods for more information.
59
+
The 'im' client always returns a POJO with the information of the call. If an error occurs, an **ImClientErrorException**is thrown. This exception contains the error message and the error code returned by the server.
0 commit comments