Expose methods to access fields
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 24 Nov 2015 19:26:18 +0000 (20:26 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Tue, 24 Nov 2015 19:26:18 +0000 (20:26 +0100)
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();
        }