remove request events from core listener
[jSite2.git] / src / net / pterodactylus / jsite / core / Request.java
index 6f05e7b..702e135 100644 (file)
@@ -66,6 +66,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 +108,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 +281,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!