remove Id keyword
[jSite2.git] / src / net / pterodactylus / jsite / core / Request.java
index 6f05e7b..2c79856 100644 (file)
@@ -25,7 +25,6 @@ import net.pterodactylus.util.beans.AbstractBean;
  * A request is an ongoing download or upload reported by the freenet node.
  * 
  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
  */
 public class Request extends AbstractBean {
 
@@ -33,7 +32,6 @@ public class Request extends AbstractBean {
         * The type of a request.
         * 
         * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
-        * @version $Id$
         */
        public enum Type {
 
@@ -66,6 +64,9 @@ public class Request extends AbstractBean {
        /** Name of the “fetchable” property. */
        public static final String PROPERTY_FETCHABLE = "fetchable";
 
+       /** Name of the “URI” property. */
+       public static final String PROPERTY_URI = "uri";
+
        /** Name of the “total blocks” property. */
        public static final String PROPERTY_TOTAL_BLOCKS = "totalBlocks";
 
@@ -105,6 +106,9 @@ public class Request extends AbstractBean {
        /** Whether the data is already fetchable (in case of put requests). */
        private boolean fetchable;
 
+       /** The generated URI. */
+       private String uri;
+
        /** The total number of blocks. */
        private int totalBlocks;
 
@@ -275,6 +279,25 @@ public class Request extends AbstractBean {
        }
 
        /**
+        * Returns the URI generated by this request.
+        * 
+        * @return The generated URI
+        */
+       public String getURI() {
+               return uri;
+       }
+
+       /**
+        * Sets the URI generated by this request.
+        * 
+        * @param uri
+        *            The generated URI
+        */
+       void setURI(String uri) {
+               this.uri = uri;
+       }
+
+       /**
         * Returns the total number of blocks of a request. Until
         * {@link #isTotalFinalized()} returns <code>true</code> this value may
         * change!