X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FPutFailed.java;h=b6916f4f51ed9d9bcd6f4d3e5ba8299a3479178c;hb=82f9e000ee9103bd912275b012ac7002764aaead;hp=6eedc0509685e075f1a294860eefbc0db42a2c63;hpb=f553531be78d6d6d95dc152728f2b8d40242b57d;p=jFCPlib.git
diff --git a/src/net/pterodactylus/fcp/PutFailed.java b/src/net/pterodactylus/fcp/PutFailed.java
index 6eedc05..b6916f4 100644
--- a/src/net/pterodactylus/fcp/PutFailed.java
+++ b/src/net/pterodactylus/fcp/PutFailed.java
@@ -1,6 +1,5 @@
/*
- * jSite2 - GetFailed.java -
- * Copyright © 2008 David Roden
+ * jFCPlib - GetFailed.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
@@ -28,15 +27,14 @@ import java.util.Map.Entry;
* The âPutFailedâ message signals the client that a {@link ClientPut} request
* has failed. This also means that no further progress messages for that
* request will be sent.
- *
+ *
* @author David âBombeâ Roden <bombe@freenetproject.org>
- * @version $Id$
*/
public class PutFailed extends BaseMessage {
/**
* Creates a new âPutFailedâ message that wraps the received message.
- *
+ *
* @param receivedMessage
* The received message
*/
@@ -46,9 +44,9 @@ public class PutFailed extends BaseMessage {
/**
* Returns the code of the error.
- *
- * @return The code of the error, or -1
if the error code
- * could not be parsed
+ *
+ * @return The code of the error, or -1
if the error code could
+ * not be parsed
*/
public int getCode() {
return FcpUtils.safeParseInt(getField("Code"));
@@ -56,7 +54,7 @@ public class PutFailed extends BaseMessage {
/**
* Returns the identifier of the request.
- *
+ *
* @return The identifier of the request
*/
public String getIdentifier() {
@@ -65,7 +63,7 @@ public class PutFailed extends BaseMessage {
/**
* Returns whether the request is on the global queue.
- *
+ *
* @return true
if the request is on the global queue,
* false
if it is on the client-local queue
*/
@@ -75,7 +73,7 @@ public class PutFailed extends BaseMessage {
/**
* Returns the description of the error code.
- *
+ *
* @return The description of the error code
*/
public String getCodeDescription() {
@@ -84,7 +82,7 @@ public class PutFailed extends BaseMessage {
/**
* Returns the extra description of the error.
- *
+ *
* @return The extra description of the error
*/
public String getExtraDescription() {
@@ -93,7 +91,7 @@ public class PutFailed extends BaseMessage {
/**
* Returns the short description of the error.
- *
+ *
* @return The short description of the error
*/
public String getShortCodeDescription() {
@@ -102,7 +100,7 @@ public class PutFailed extends BaseMessage {
/**
* Returns the expected URI of the request.
- *
+ *
* @return The expected URI
*/
public String getExpectedURI() {
@@ -112,7 +110,7 @@ public class PutFailed extends BaseMessage {
/**
* Returns whether the request failed fatally. If a request fails fatally it
* can never complete, even with inifinite retries.
- *
+ *
* @return true
if the request failed fatally,
* false
otherwise
*/
@@ -124,13 +122,13 @@ public class PutFailed extends BaseMessage {
* Returns a list of complex error codes with the message. Use
* {@link #getComplexErrorDescription(int)} and
* {@link #getComplexErrorCount(int)} to get details.
- *
+ *
* @return A list of complex error codes
*/
public int[] getComplexErrorCodes() {
Map allFields = getFields();
List errorCodeList = new ArrayList();
- for (Entry field: allFields.entrySet()) {
+ for (Entry field : allFields.entrySet()) {
String fieldKey = field.getKey();
if (fieldKey.startsWith("Errors.")) {
int nextDot = fieldKey.indexOf('.', 7);
@@ -144,7 +142,7 @@ public class PutFailed extends BaseMessage {
}
int[] errorCodes = new int[errorCodeList.size()];
int errorIndex = 0;
- for (int errorCode: errorCodeList) {
+ for (int errorCode : errorCodeList) {
errorCodes[errorIndex++] = errorCode;
}
return errorCodes;
@@ -153,7 +151,7 @@ public class PutFailed extends BaseMessage {
/**
* Returns the description of the complex error. You should only hand it
* error codes you got from {@link #getComplexErrorCodes()}!
- *
+ *
* @param errorCode
* The error code
* @return The description of the complex error
@@ -165,7 +163,7 @@ public class PutFailed extends BaseMessage {
/**
* Returns the count of the complex error. You should only hand it error
* codes you got from {@link #getComplexErrorCodes()}!
- *
+ *
* @param errorCode
* The error code
* @return The count of the complex error, or -1
if the count