/**
* 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 {
/**
* Creates a new request with the given identifier.
- *
+ *
* @param node
* The node the request belongs to
* @param identifier
/**
* Returns the node the request belongs to.
- *
+ *
* @return The node the request belongs to
*/
public Node getNode() {
/**
* Returns the identifier of the request. It is unique per node.
- *
+ *
* @return The identifier of the request
*/
public String getIdentifier() {
/**
* Returns the type of the request.
- *
+ *
* @return The type of the request
*/
/**
* Sets the type of the request.
- *
+ *
* @param type
* The type of the request
*/
/**
* Returns the client token of the request.
- *
+ *
* @return The client token of the request
*/
public String getClientToken() {
/**
* Sets the client token of the request.
- *
+ *
* @param clientToken
* The client token of the request
*/
/**
* Returns whether the request has finished.
- *
+ *
* @see #isSuccessful()
* @return <code>true</code> if the request is finished,
* <code>false</code> otherwise
/**
* Sets whether the request has finished.
- *
+ *
* @param finished
* <code>true</code> if the request has finished,
* <code>false</code> otherwise
/**
* Returns whether the request finished successfully. This value will only
* have meaning if {@link #isFinished()} returns <code>true</code>.
- *
+ *
* @return <code>true</code> if the request finished successfully,
* <code>false</code> otherwise
*/
/**
* Sets whether this request finished successfully.
- *
+ *
* @param successful
* <code>true</code> if the request finished successfully,
* <code>false</code> otherwise
/**
* Returns whether the data inserted by this {@link Type#put} or
* {@link Type#putDir} request is already fetchable by other clients.
- *
+ *
* @return <code>true</code> if the data is already fetchable,
* <code>false</code> otherwise
*/
/**
* Sets whether the data inserted by this {@link Type#put} or
* {@link Type#putDir} request is already fetchable by other clients.
- *
+ *
* @param fetchable
* <code>true</code> if the data is already fetchable,
* <code>false</code> otherwise
/**
* Returns the URI generated by this request.
- *
+ *
* @return The generated URI
*/
public String getURI() {
/**
* Sets the URI generated by this request.
- *
+ *
* @param uri
* The generated URI
*/
* Returns the total number of blocks of a request. Until
* {@link #isTotalFinalized()} returns <code>true</code> this value may
* change!
- *
+ *
* @return The total number of blocks of a request
*/
public int getTotalBlocks() {
/**
* Sets the total number of blocks of a request.
- *
+ *
* @param totalBlocks
* The total number of blocks
*/