/*
- * todesbaum-lib -
+ * todesbaum-lib -
* Copyright (C) 2006 David Roden
*
* This program is free software; you can redistribute it and/or modify
* most of the messages also have an identifier which binds it to a specific
* command. Exceptions are among others <code>NodeHello</code>,
* <code>SSKKeypair</code>, and <code>EndListPersistentRequests</code>.
- *
+ *
* @author David Roden <droden@gmail.com>
* @version $Id$
* @see de.todesbaum.util.freenet.fcp2.Client
/**
* Creates a new message with the specified name.
- *
+ *
* @param name
* The name of this message
*/
/**
* Returns the identifier of this message.
- *
+ *
* @return The identifier
*/
public String getIdentifier() {
/**
* Sets the identifier of this message.
- *
+ *
* @param identifier
* The identifier of this message
*/
/**
* Returns the name of this message.
- *
+ *
* @return The name of this message
*/
public String getName() {
/**
* 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 <code>true</code> if this parameter exists in this 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<Entry<String, String>> entrySet() {
/**
* Returns the value of the parameter with the name specified by
* <code>key</code>.
- *
+ *
* @param key
* The name of the parameter
* @return The value of the parameter
/**
* Stores the specified value as parameter with the name specified by
* <code>key</code>.
- *
+ *
* @param key
* The name of the parameter
* @param value
/**
* Returns the number of parameters in this message.
- *
+ *
* @return The number of parameters
*/
public int size() {
/**
* 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() + "]";
}