/*
- * jSite2 - PersistentPut.java -
- * Copyright © 2008 David Roden
+ * jFCPlib - PersistentPut.java - Copyright © 2008 David Roden
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
/**
* A “PersistentPut” message notifies a client about a persistent
* {@link ClientPut} request.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
public class PersistentPut extends BaseMessage {
/**
* Creates a new “PersistentPut” message that wraps the received message.
- *
+ *
* @param receivedMessage
* The received message
*/
/**
* Returns the client token of the request.
- *
+ *
* @return The client token of the request
*/
public String getClientToken() {
/**
* Returns the data length of the request.
- *
- * @return The data length of the request, or <code>-1</code> if the
- * length could not be parsed
+ *
+ * @return The data length of the request, or <code>-1</code> if the length
+ * could not be parsed
*/
public long getDataLength() {
return FcpUtils.safeParseLong(getField("DataLength"));
/**
* Returns whether the request is on the global queue.
- *
+ *
* @return <code>true</code> if the request is on the global queue,
* <code>false</code> otherwise
*/
/**
* Returns the identifier of the request.
- *
+ *
* @return The identifier of the request
*/
public String getIdentifier() {
/**
* Returns the maximum number of retries for failed blocks. When
* <code>-1</code> is returned each block is tried forever.
- *
+ *
* @return The maximum number of retries for failed blocks, or
- * <code>-1</code> for unlimited retries, or <code>-2</code> if
- * the number of retries could not be parsed
+ * <code>-1</code> for unlimited retries, or <code>-2</code> if the
+ * number of retries could not be parsed
*/
public int getMaxRetries() {
return FcpUtils.safeParseInt(getField("MaxRetries"));
/**
* Returns the content type of the data.
- *
+ *
* @return The content type
*/
public String getMetadataContentType() {
/**
* Returns the persistence of the request.
- *
+ *
* @return The persistence of the request
*/
public Persistence getPersistence() {
/**
* Returns the priority of the request.
- *
+ *
* @return The priority of the request, or {@link Priority#unknown} if the
* priority could not be parsed
*/
/**
* Returns whether this request has started.
- *
- * @return <code>true</code> if the request has started,
- * <code>false</code> otherwise
+ *
+ * @return <code>true</code> if the request has started, <code>false</code>
+ * otherwise
*/
public boolean isStarted() {
return Boolean.valueOf(getField("Started"));
/**
* Returns the target filename of the request.
- *
+ *
* @return The target filename of the request
*/
public String getTargetFilename() {
/**
* Returns the upload source of the request.
- *
+ *
* @return The upload source of the request
*/
public UploadFrom getUploadFrom() {
/**
* Returns the target URI of the request.
- *
+ *
* @return The target URI of the request
*/
public String getURI() {
/**
* Returns the verbosity of the request.
- *
+ *
* @return The verbosity of the request
*/
public Verbosity getVerbosity() {