diff options
author | Michael Petretti | 2014-08-27 16:10:08 +0200 |
---|---|---|
committer | Michael Petretti | 2014-08-27 16:10:08 +0200 |
commit | dabd31a107bb8818596002b4edf12477ac241d61 (patch) | |
tree | 1bea7f4f98ce0819ca0618adde7bdd4db18dd0fb /src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java | |
parent | Authentication is now working again. (diff) | |
download | satellite-daemon-dabd31a107bb8818596002b4edf12477ac241d61.tar.gz satellite-daemon-dabd31a107bb8818596002b4edf12477ac241d61.tar.xz satellite-daemon-dabd31a107bb8818596002b4edf12477ac241d61.zip |
Added comments for better documentation.
Diffstat (limited to 'src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java')
-rw-r--r-- | src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java b/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java index c77d6d6..22f270a 100644 --- a/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java +++ b/src/main/java/org/openslx/satellitedaemon/filetransfer/ThriftConnection.java @@ -114,7 +114,7 @@ public class ThriftConnection { // SessionID is not valid // TODO: Code for new SSID } else if (e.getNumber().equals(AuthorizationError.NO_PERMISSION)) { - // Gibts noch gar nicht + // not yet implemented. } else { e.printStackTrace(); @@ -338,6 +338,8 @@ public class ThriftConnection { theClient = client; isAuthenticated = true; } + // here the client was already used so we are just assuming that the client is still + // authenticated. Should be checked with the ping() method. // try { // isAuthenticated = theClient.ping(); // } catch ( TException x ) { @@ -387,8 +389,8 @@ public class ThriftConnection { /***********************************************************************************************/ /** + * Method for creating a new Client for Thrift communication. * - * @return * @throws IOException */ private static ImageServer.Client newClient() throws IOException { |