X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FPeer.java;h=72925cb8bcd561a4c86e24594b4dfb71de7fa691;hb=db657e470022206c978717b53cffb0c9f3c7569b;hp=3cfa856b38f2fbe54eb3b09ce5434f8e57bde62c;hpb=508624458578f01a393f8b44f32b98b40054fdc8;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/Peer.java b/src/main/java/net/pterodactylus/fcp/Peer.java index 3cfa856..72925cb 100644 --- a/src/main/java/net/pterodactylus/fcp/Peer.java +++ b/src/main/java/net/pterodactylus/fcp/Peer.java @@ -28,7 +28,7 @@ import java.util.Map.Entry; * * @author David ‘Bombe’ Roden <bombe@freenetproject.org> */ -public class Peer extends BaseMessage { +public class Peer extends BaseMessage implements Identifiable { /** * Creates a new “Peer” reply from the received message. @@ -36,7 +36,7 @@ public class Peer extends BaseMessage { * @param receivedMessage * The received message */ - Peer(FcpMessage receivedMessage) { + public Peer(FcpMessage receivedMessage) { super(receivedMessage); } @@ -66,6 +66,7 @@ public class Peer extends BaseMessage { * * @return The identifier of the request */ + @Override public String getIdentifier() { return getField("Identifier"); } @@ -212,9 +213,10 @@ public class Peer extends BaseMessage { } /** - * Returns one of the volatile fields from the message. The given field name - * is prepended with “volatile.” so if you want to get the value of the - * field with the name “volatile.status” you only need to specify “status”. + * Returns one of the volatile fields from the message. The given field + * name is prepended with “volatile.” so if you want to get the value of + * the field with the name “volatile.status” you only need to specify + * “status”. * * @param field * The name of the field @@ -241,10 +243,10 @@ public class Peer extends BaseMessage { } /** - * Returns one of the metadata fields from the message. The given field name - * is prepended with “metadata.” so if you want to get the value of the - * field with the name “metadata.timeLastRoutable” you only need to specify - * “timeLastRoutable”. + * Returns one of the metadata fields from the message. The given field + * name is prepended with “metadata.” so if you want to get the value of + * the field with the name “metadata.timeLastRoutable” you only need to + * specify “timeLastRoutable”. * * @param field * The name of the field