|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.XMLData | +--org.jabber.jabberbeans.serverside.Log
A Log
object represents a single Log packet, which is
used to send debug/error information between the server components and any
data store.
e.g.:
<log type="notice|warn|error" from="service|'_internal'">
content
<log>
Note that there is no 'error' capacity, no 'to' attribute, and no xmlns extensions. IDs are pointless.
ContentPacket
,
Serialized FormField Summary | |
protected java.lang.String |
content
A String holding the loggable message. |
protected JID |
fromAddress
The address that this packet is coming from - your address (or blank) for outgoing packets, the originator's address for incoming packets. |
protected java.lang.String |
identifier
An identifier that is echoed in data replies/errors of this packet. |
protected java.lang.String |
type
A packet subtype. |
Constructor Summary | |
Log(LogBuilder builder)
Creates a new Log instance. |
Method Summary | |
void |
appendItem(java.lang.StringBuffer retval)
appendItem appends the XML representation of the
current packet data to the specified StringBuffer . |
JID |
getFromAddress()
getFromAddress returns the address of the sender of this
message. |
java.lang.String |
getIdentifier()
getIdentifier returns a string which uniquely identifies
this packet in the XML stream. |
java.lang.String |
getType()
getType returns the subtype of this packet. |
Methods inherited from class org.jabber.jabberbeans.XMLData |
appendAttrib, appendAttrib, appendChild, appendChild, escapeString, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jabber.jabberbeans.Packet |
toString |
Field Detail |
protected JID fromAddress
protected java.lang.String identifier
protected java.lang.String type
protected java.lang.String content
String
holding the loggable message.
Constructor Detail |
public Log(LogBuilder builder)
Log
instance.
builder
- an LogBuilder
holding appropriate
valuesMethod Detail |
public JID getFromAddress()
getFromAddress
returns the address of the sender of this
message. Can be blank (null).
JID
this packet originated from.public java.lang.String getIdentifier()
getIdentifier
returns a string which uniquely identifies
this packet in the XML stream. Any reply (such as an IQ type=result or
an error message) will carry this same identifier. Identifiers are not
meant to be duplicated in a stream.
String
valuepublic java.lang.String getType()
getType
returns the subtype of this packet. Its context
and correctness is determined by the final packet type (message, iq, etc)
according to the jabber protocol specifications on protocol.jabber.org.
String
holding the typepublic void appendItem(java.lang.StringBuffer retval)
appendItem
appends the XML representation of the
current packet data to the specified StringBuffer
.
appendItem
in interface Packet
appendItem
in class XMLData
retval
- The StringBuffer
to append to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |