Expose fields from FCP replies messages
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 10 Jul 2015 09:25:23 +0000 (11:25 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 10 Jul 2015 09:25:23 +0000 (11:25 +0200)
src/main/java/net/pterodactylus/fcp/BaseMessage.java

index a5ea020..cca7d67 100644 (file)
@@ -57,7 +57,7 @@ public class BaseMessage {
         * @return The content of the field, or <code>null</code> if there is no
         *         such field
         */
-       protected String getField(String field) {
+       public String getField(String field) {
                return receivedMessage.getField(field);
        }
 
@@ -67,7 +67,7 @@ public class BaseMessage {
         * @see FcpMessage#getFields()
         * @return All fields from the message
         */
-       protected Map<String, String> getFields() {
+       public Map<String, String> getFields() {
                return receivedMessage.getFields();
        }