* The “GetFailed” message signals the client that a {@link ClientGet} request
* has failed. This also means that no further progress messages for that
* request will be sent.
* The “GetFailed” message signals the client that a {@link ClientGet} request
* has failed. This also means that no further progress messages for that
* request will be sent.
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
public class GetFailed extends BaseMessage {
/**
* Creates a new “GetFailed” message that wraps the received message.
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
public class GetFailed extends BaseMessage {
/**
* Creates a new “GetFailed” message that wraps the received message.
* @return <code>true</code> if the request is on the global queue,
* <code>false</code> if it is on the client-local queue
*/
* @return <code>true</code> if the request is on the global queue,
* <code>false</code> if it is on the client-local queue
*/
* and {@link #getExpectedMetadataContentType()}) have already been
* finalized and can be trusted. If the values have not been finalized that
* can change over time.
* and {@link #getExpectedMetadataContentType()}) have already been
* finalized and can be trusted. If the values have not been finalized that
* can change over time.
* @return <code>true</code> if the expected values have already been
* finalized, <code>false</code> otherwise
*/
* @return <code>true</code> if the expected values have already been
* finalized, <code>false</code> otherwise
*/
* Returns the URI the request is redirected to (in case of a request for a
* USK). This is returned so that client applications know that the URI of
* the key has updated.
* Returns the URI the request is redirected to (in case of a request for a
* USK). This is returned so that client applications know that the URI of
* the key has updated.
* Returns a list of complex error codes with the message. Use
* {@link #getComplexErrorDescription(int)} and
* {@link #getComplexErrorCount(int)} to get details.
* 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<String, String> allFields = getFields();
List<Integer> errorCodeList = new ArrayList<Integer>();
* @return A list of complex error codes
*/
public int[] getComplexErrorCodes() {
Map<String, String> allFields = getFields();
List<Integer> errorCodeList = new ArrayList<Integer>();
String fieldKey = field.getKey();
if (fieldKey.startsWith("Errors.")) {
int nextDot = fieldKey.indexOf('.', 7);
String fieldKey = field.getKey();
if (fieldKey.startsWith("Errors.")) {
int nextDot = fieldKey.indexOf('.', 7);
/**
* Returns the description of the complex error. You should only hand it
* error codes you got from {@link #getComplexErrorCodes()}!
/**
* Returns the description of the complex error. You should only hand it
* error codes you got from {@link #getComplexErrorCodes()}!
/**
* Returns the count of the complex error. You should only hand it error
* codes you got from {@link #getComplexErrorCodes()}!
/**
* Returns the count of the complex error. You should only hand it error
* codes you got from {@link #getComplexErrorCodes()}!