Whitespace and formatting fixes.
[jFCPlib.git] / src / net / pterodactylus / fcp / highlevel / HighLevelResult.java
index 3be5b2c..87085e2 100644 (file)
@@ -23,14 +23,35 @@ package net.pterodactylus.fcp.highlevel;
  * Base class for results of {@link HighLevelClient} operations.
  * 
  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
  */
 public abstract class HighLevelResult {
 
+       /** The identifier of the request. */
+       private final String identifier;
+
        /** Whether the operation failed. */
        private boolean failed;
 
        /**
+        * Package-private constructor.
+        * 
+        * @param identifier
+        *            The identifier of the request
+        */
+       HighLevelResult(String identifier) {
+               this.identifier = identifier;
+       }
+
+       /**
+        * Returns the identifier of the underlying request.
+        * 
+        * @return The identifier of the request
+        */
+       public String getIdentifier() {
+               return identifier;
+       }
+
+       /**
         * Returns whether the operation failed.
         * 
         * @return <code>true</code> if the operation failed, <code>false</code>