|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.web_visage.ichat.AbstractMessageFactory com.web_visage.ichat.DefaultMessageFactory
public class DefaultMessageFactory
Creates client messages.
Field Summary |
---|
Fields inherited from interface com.web_visage.ichat.IChatMessageConstants |
---|
BEGIN_END_MARKER, COMMON_LINE, ICHAT_TAG, PRIVATE_TAG, SEPARATOR, WILDCARD |
Method Summary | |
---|---|
IChatForwardMessage |
createForwardMessage(IChatSender aSender,
java.lang.String aReceiver,
IChatMessage aMessage)
Creates public "transport" message. |
IChatMessage[] |
createMessage(byte[] aCryptedMessage)
Creates message from the raw byte form. |
IChatServerForwardMessage |
createServerForwardMessage(IChatMessage aMessage)
Creates server "forward" message. |
static DefaultMessageFactory |
getSingleton()
Returns singleton instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public IChatForwardMessage createForwardMessage(IChatSender aSender, java.lang.String aReceiver, IChatMessage aMessage)
aSender
- -
a sender objectaReceiver
- -
receiver name or '*' for allaMessage
- -
unencrypted message to wrap
public IChatServerForwardMessage createServerForwardMessage(IChatMessage aMessage)
aMessage
-
public IChatMessage[] createMessage(byte[] aCryptedMessage) throws IChatException
aCryptedMessage
- -
crypted raw byte data
IChatException
public static DefaultMessageFactory getSingleton()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |