X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fcore%2FRequest.java;h=a61bb94ef0a11f571890dcaac97e67c7e1d31d99;hb=c63257e8cc0ba1a5aca9364b22171abe7279d479;hp=702e135f56340c0a47cb3caad7ec93646dc1db70;hpb=d5afe3e2bde1f3a21cec6f3b3f1e57f7fdac3618;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/core/Request.java b/src/net/pterodactylus/jsite/core/Request.java index 702e135..a61bb94 100644 --- a/src/net/pterodactylus/jsite/core/Request.java +++ b/src/net/pterodactylus/jsite/core/Request.java @@ -23,17 +23,15 @@ 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 { /** * The type of a request. - * + * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - * @version $Id$ */ public enum Type { @@ -131,7 +129,7 @@ public class Request extends AbstractBean { /** * Creates a new request with the given identifier. - * + * * @param node * The node the request belongs to * @param identifier @@ -148,7 +146,7 @@ public class Request extends AbstractBean { /** * Returns the node the request belongs to. - * + * * @return The node the request belongs to */ public Node getNode() { @@ -157,7 +155,7 @@ public class Request extends AbstractBean { /** * Returns the identifier of the request. It is unique per node. - * + * * @return The identifier of the request */ public String getIdentifier() { @@ -166,7 +164,7 @@ public class Request extends AbstractBean { /** * Returns the type of the request. - * + * * @return The type of the request */ @@ -176,7 +174,7 @@ public class Request extends AbstractBean { /** * Sets the type of the request. - * + * * @param type * The type of the request */ @@ -188,7 +186,7 @@ public class Request extends AbstractBean { /** * Returns the client token of the request. - * + * * @return The client token of the request */ public String getClientToken() { @@ -197,7 +195,7 @@ public class Request extends AbstractBean { /** * Sets the client token of the request. - * + * * @param clientToken * The client token of the request */ @@ -209,7 +207,7 @@ public class Request extends AbstractBean { /** * Returns whether the request has finished. - * + * * @see #isSuccessful() * @return true if the request is finished, * false otherwise @@ -220,7 +218,7 @@ public class Request extends AbstractBean { /** * Sets whether the request has finished. - * + * * @param finished * true if the request has finished, * false otherwise @@ -234,7 +232,7 @@ public class Request extends AbstractBean { /** * Returns whether the request finished successfully. This value will only * have meaning if {@link #isFinished()} returns true. - * + * * @return true if the request finished successfully, * false otherwise */ @@ -244,7 +242,7 @@ public class Request extends AbstractBean { /** * Sets whether this request finished successfully. - * + * * @param successful * true if the request finished successfully, * false otherwise @@ -258,7 +256,7 @@ public class Request extends AbstractBean { /** * Returns whether the data inserted by this {@link Type#put} or * {@link Type#putDir} request is already fetchable by other clients. - * + * * @return true if the data is already fetchable, * false otherwise */ @@ -269,7 +267,7 @@ public class Request extends AbstractBean { /** * Sets whether the data inserted by this {@link Type#put} or * {@link Type#putDir} request is already fetchable by other clients. - * + * * @param fetchable * true if the data is already fetchable, * false otherwise @@ -282,7 +280,7 @@ public class Request extends AbstractBean { /** * Returns the URI generated by this request. - * + * * @return The generated URI */ public String getURI() { @@ -291,7 +289,7 @@ public class Request extends AbstractBean { /** * Sets the URI generated by this request. - * + * * @param uri * The generated URI */ @@ -303,7 +301,7 @@ public class Request extends AbstractBean { * Returns the total number of blocks of a request. Until * {@link #isTotalFinalized()} returns true this value may * change! - * + * * @return The total number of blocks of a request */ public int getTotalBlocks() { @@ -312,7 +310,7 @@ public class Request extends AbstractBean { /** * Sets the total number of blocks of a request. - * + * * @param totalBlocks * The total number of blocks */