|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.serverside.LogBuilder
A LogBuilder
is the base class for the builder of all
the different Builder classes for Packet objects. Packet-derived objects
require builders since they are immutable.
Field Summary | |
protected java.lang.String |
content
A String holding the loggable message. |
protected JID |
fromAddress
JID for the originator of the packet |
protected java.lang.String |
identifier
unique identifier for the packet |
protected java.lang.String |
type
Subtype of the packet(defined based on the final packet type) |
Constructor Summary | |
LogBuilder()
|
Method Summary | |
Packet |
build()
build will create a packet based on the information in
the subclassed builder |
java.lang.String |
getContent()
get the log content. |
JID |
getFromAddress()
get the sender address |
java.lang.String |
getIdentifier()
get the message identifier. |
java.lang.String |
getType()
get the message type. |
void |
reset()
reset is a method implemented by children to reset their
data. |
void |
setContent(java.lang.String value)
set the log content. |
void |
setFromAddress(JID from)
set the sender address |
void |
setIdentifier(java.lang.String id)
Set the message identifier. |
void |
setType(java.lang.String type)
set the message type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 LogBuilder()
Method Detail |
public void reset()
reset
is a method implemented by children to reset their
data.
public JID getFromAddress()
public void setFromAddress(JID from)
public java.lang.String getIdentifier()
public void setIdentifier(java.lang.String id)
id
- string value of the identifier.public java.lang.String getType()
public void setType(java.lang.String type)
type
- a value of type 'String'public java.lang.String getContent()
public void setContent(java.lang.String value)
value
- a value of type 'String'public Packet build()
build
will create a packet based on the information in
the subclassed builder
Packet
value on success
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |