projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Maven project description.
[jFCPlib.git]
/
src
/
net
/
pterodactylus
/
fcp
/
ListPeers.java
diff --git
a/src/net/pterodactylus/fcp/ListPeers.java
b/src/net/pterodactylus/fcp/ListPeers.java
index
3ae3637
..
b0cbd1b
100644
(file)
--- a/
src/net/pterodactylus/fcp/ListPeers.java
+++ b/
src/net/pterodactylus/fcp/ListPeers.java
@@
-1,6
+1,5
@@
/*
/*
- * jSite2 - ListPeers.java -
- * Copyright © 2008 David Roden
+ * jFCPlib - ListPeers.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
*
* 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
@@
-21,32
+20,37
@@
package net.pterodactylus.fcp;
/**
* The “ListPeer” requests asks the node for a list of all peers it has.
/**
* The “ListPeer” requests asks the node for a list of all peers it has.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
*/
public class ListPeers extends FcpMessage {
/**
* Creates a new “ListPeers” request that only includes basic data of the
* peers.
*/
public class ListPeers extends FcpMessage {
/**
* Creates a new “ListPeers” request that only includes basic data of the
* peers.
+ *
+ * @param identifier
+ * The identifier of the request
*/
*/
- public ListPeers() {
- this(false, false);
+ public ListPeers(
String identifier
) {
+ this(
identifier,
false, false);
}
/**
* Creates a new “ListPeers” request that includes wanted data of the peers.
}
/**
* Creates a new “ListPeers” request that includes wanted data of the peers.
- *
+ *
+ * @param identifier
+ * The identifier of the request
* @param withMetadata
* @param withMetadata
- * If <code>true</code> metadata of the peers is included in
- *
the
reply
+ * If <code>true</code> metadata of the peers is included in
the
+ * reply
* @param withVolatile
* @param withVolatile
- * if <code>true</code> volatile data of the peers is included
- *
in
the reply
+ * if <code>true</code> volatile data of the peers is included
in
+ * the reply
*/
*/
- public ListPeers(boolean withMetadata, boolean withVolatile) {
+ public ListPeers(
String identifier,
boolean withMetadata, boolean withVolatile) {
super("ListPeers");
super("ListPeers");
+ setField("Identifier", identifier);
setField("WithMetadata", String.valueOf(withMetadata));
setField("WithVolatile", String.valueOf(withVolatile));
}
setField("WithMetadata", String.valueOf(withMetadata));
setField("WithVolatile", String.valueOf(withVolatile));
}