Added toString methods.

This commit is contained in:
Mark Fisher
2008-02-22 04:34:21 +00:00
parent f410d02ed6
commit 4226a980de
2 changed files with 8 additions and 0 deletions

View File

@@ -81,4 +81,8 @@ public class GenericMessage<T> implements Message<T> {
return (expiration != null) ? expiration.getTime() < System.currentTimeMillis() : false;
}
public String toString() {
return "[ID=" + this.id + "][Header=" + this.header + "][Payload='" + this.payload + "']";
}
}

View File

@@ -134,4 +134,8 @@ public class MessageHeader {
return this.attributes.keySet();
}
public String toString() {
return "[Properties=" + this.properties + "][Attributes=" + this.attributes + "]";
}
}