projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rework node connections
[jSite2.git]
/
src
/
net
/
pterodactylus
/
util
/
fcp
/
BaseMessage.java
diff --git
a/src/net/pterodactylus/util/fcp/BaseMessage.java
b/src/net/pterodactylus/util/fcp/BaseMessage.java
index
d64cef2
..
e5f043a
100644
(file)
--- a/
src/net/pterodactylus/util/fcp/BaseMessage.java
+++ b/
src/net/pterodactylus/util/fcp/BaseMessage.java
@@
-3,6
+3,8
@@
*/
package net.pterodactylus.util.fcp;
*/
package net.pterodactylus.util.fcp;
+import java.util.Map;
+
/**
* A basic message abstraction that wraps a received FCP message.
*
/**
* A basic message abstraction that wraps a received FCP message.
*
@@
-41,8
+43,18
@@
public class BaseMessage {
* @return The content of the field, or <code>null</code> if there is no
* such field
*/
* @return The content of the field, or <code>null</code> if there is no
* such field
*/
- p
ublic
String getField(String field) {
+ p
rotected
String getField(String field) {
return receivedMessage.getField(field);
}
return receivedMessage.getField(field);
}
+ /**
+ * Returns all fields from the received message.
+ *
+ * @see FcpMessage#getFields()
+ * @return All fields from the message
+ */
+ protected Map<String, String> getFields() {
+ return receivedMessage.getFields();
+ }
+
}
}