[PATCH] Some updates to the Java Cloud API

This commit is contained in:
Carlos Martin and Ruben S. Montero authored and Ruben S. Montero committed 2010-03-23 22:20:48 +01:00
1 parent f9b542896b
commit 0c7524b3b2
22 files changed
+1198 -146

No files matched your search

+15 -2
View File
@@ -24,22 +24,35 @@ public class SessionInit {
try
{
Client oneClient = new Client();
System.out.println(" ok");
}
catch (Exception e)
{
System.out.println(e.getMessage());
}
System.out.println("ok");
System.out.println("Wrong session initialization...");
System.out.println("Forcing a wrong user/password initialization...");
try
{
// The secret string should be user:password. The url is null, so it
// will be set to default.
Client oneClient = new Client("wrong_password_token",null);
}
catch (Exception e)
{
System.out.println("\t" + e.getMessage());
}
System.out.println("Forcing a wrong url initialization...");
try
{
// The HTTP is misspelled
Client oneClient = new Client(null,"HTP://localhost:2633/RPC2");
}
catch (Exception e)
{
System.out.println("\t" + e.getMessage());
}
}
}