X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Futil%2Ffreenet%2Ffcp2%2FMessage.java;h=d51d8ad743cd8cdedaf5498901e29c481ee48b4c;hb=6e372a5cc19a399d4236eb1d9cb40ebcfd0aca90;hp=a966d673ef932fdffae108636e8b4932ed32557e;hpb=e4f461213da0e30faf9e9eb2e97626abff320618;p=jSite.git diff --git a/src/de/todesbaum/util/freenet/fcp2/Message.java b/src/de/todesbaum/util/freenet/fcp2/Message.java index a966d67..d51d8ad 100644 --- a/src/de/todesbaum/util/freenet/fcp2/Message.java +++ b/src/de/todesbaum/util/freenet/fcp2/Message.java @@ -1,5 +1,5 @@ /* - * todesbaum-lib - + * todesbaum-lib - * Copyright (C) 2006 David Roden * * This program is free software; you can redistribute it and/or modify @@ -22,15 +22,15 @@ package de.todesbaum.util.freenet.fcp2; import java.io.InputStream; import java.util.HashMap; import java.util.Map; -import java.util.Set; import java.util.Map.Entry; +import java.util.Set; /** * Contains replies sent by the Freenet node. A message always has a name, and * most of the messages also have an identifier which binds it to a specific * command. Exceptions are among others NodeHello, * SSKKeypair, and EndListPersistentRequests. - * + * * @author David Roden <droden@gmail.com> * @version $Id$ * @see de.todesbaum.util.freenet.fcp2.Client @@ -51,7 +51,7 @@ public class Message { /** * Creates a new message with the specified name. - * + * * @param name * The name of this message */ @@ -61,7 +61,7 @@ public class Message { /** * Returns the identifier of this message. - * + * * @return The identifier */ public String getIdentifier() { @@ -70,7 +70,7 @@ public class Message { /** * Sets the identifier of this message. - * + * * @param identifier * The identifier of this message */ @@ -80,7 +80,7 @@ public class Message { /** * Returns the name of this message. - * + * * @return The name of this message */ public String getName() { @@ -90,7 +90,7 @@ public class Message { /** * Tests whether this message contains the parameter with the specified key. * Key names are compared ignoring case. - * + * * @param key * The name of the parameter * @return true if this parameter exists in this message, @@ -104,7 +104,7 @@ public class Message { * Returns all parameters of this message. The keys of the entries are all * lower case so if you want to match the parameter names you have to watch * out. - * + * * @return All parameters of this message */ public Set> entrySet() { @@ -114,7 +114,7 @@ public class Message { /** * Returns the value of the parameter with the name specified by * key. - * + * * @param key * The name of the parameter * @return The value of the parameter @@ -126,7 +126,7 @@ public class Message { /** * Stores the specified value as parameter with the name specified by * key. - * + * * @param key * The name of the parameter * @param value @@ -140,7 +140,7 @@ public class Message { /** * Returns the number of parameters in this message. - * + * * @return The number of parameters */ public int size() { @@ -165,9 +165,10 @@ public class Message { /** * Returns a textual representation of this message, containing its name, * the identifier, and the parameters. - * + * * @return A textual representation of this message */ + @Override public String toString() { return name + "[identifier=" + identifier + ",parameters=" + parameters.toString() + "]"; }