X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fcore%2FRequest.java;h=702e135f56340c0a47cb3caad7ec93646dc1db70;hb=ffb4c30743497598db6103e976e4c35fcd880c35;hp=6f05e7b75f3df1ec3f49227ce145df4262080cd2;hpb=b926296901ce9c088cf3a376a3bc809306a5a556;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/core/Request.java b/src/net/pterodactylus/jsite/core/Request.java index 6f05e7b..702e135 100644 --- a/src/net/pterodactylus/jsite/core/Request.java +++ b/src/net/pterodactylus/jsite/core/Request.java @@ -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 true this value may * change!