|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.web_visage.ichat.AbstractMessageFactory
public abstract class AbstractMessageFactory
Abstract class for implementing ichat message factories.
Field Summary |
---|
Fields inherited from interface com.web_visage.ichat.IChatMessageConstants |
---|
BEGIN_END_MARKER, COMMON_LINE, ICHAT_TAG, PRIVATE_TAG, SEPARATOR, WILDCARD |
Constructor Summary | |
---|---|
AbstractMessageFactory(java.lang.String version)
Constructor. |
Method Summary | |
---|---|
IChatAlertMessage |
createAlertMessage(int aMessageId,
IChatSender aSender,
java.lang.String anAlertText)
Creates "alert" message. |
IChatBoardMessage |
createBoardMessage(int aMessageId,
IChatSender aSender,
int aBlockNumber,
java.lang.String aText)
Creates "board" message. |
IChatTextMessage |
createBroadcastMessage(int aMessageId,
IChatSender aSender,
java.lang.String aText)
Creates private broadcast iChat message. |
IChatConnectMessage |
createConnectMessage(int aMessageId,
IChatSender aSender,
java.lang.String aLogin,
java.lang.String aNickName,
java.lang.String aGreetingMessage,
java.lang.String aRecepient,
EnumStatus aStatus)
Creates connect message. |
IChatConnectMessage |
createConnectToLineMessage(int aMessageId,
IChatSender aSender,
java.lang.String aLogin,
java.lang.String aNickName,
java.lang.String aLine,
java.lang.String aGreetingMessage,
EnumStatus aStatus)
Creates connect to line message. |
IChatCreateLineMessage |
createCreateLineMessage(int aMessageId,
IChatSender aSender,
java.lang.String aLine,
java.lang.String aPassword)
Creates create line message. |
IChatCreateMessage |
createCreateMessage(int aMessageId,
IChatSender aSender,
java.lang.String aLineId,
java.lang.String aReceiver)
Creates "create" message. |
IChatMessage |
createDisconnectFromLineMessage(int aMessageId,
IChatSender aSender,
java.lang.String aLineName)
Creates disconnect from line message. |
IChatDisconnectMessage |
createDisconnectMessage(int aMessageId,
IChatSender aSender)
Creates disconnect message. |
IChatMeMessage |
createMeMessage(int aMessageId,
IChatSender aSender,
java.lang.String aText)
Creates "me" message. |
IChatMessage |
createPrivateMessage(int aMessageId,
IChatSender aSender,
java.lang.String aReceiver,
java.lang.String aText)
Creates private iChat message. |
IChatTextMessage |
createPublicMessage(int aMessageId,
IChatSender aSender,
java.lang.String aText)
Creates public iChat message. |
IChatReceivedMessage |
createReceivedMessage(int aMessageId,
IChatSender aSender,
java.lang.String aConfirmationText)
Creates "received" message. |
IChatRefreshBoardMessage |
createRefreshBoardMessage(int aMessageId,
IChatSender aSender)
Creates "refresh board" message. |
IChatRefreshMessage |
createRefreshLineMessage(int aMessageId,
IChatSender aSender,
java.lang.String aLogin,
java.lang.String aNickName,
java.lang.String aLineName,
java.lang.String aGreetingMessage,
java.lang.String aReceiver,
EnumStatus aStatus)
Creates refresh-line message. |
IChatRefreshMessage |
createRefreshMessage(int aMessageId,
IChatSender aSender,
java.lang.String aLogin,
java.lang.String aNickName,
java.lang.String aGreetingMessage,
java.lang.String aReceiver,
EnumStatus aStatus)
Creates refresh message. |
IChatRenameMessage |
createRenameMessage(int aMessageId,
IChatSender aSender,
java.lang.String aNewNick)
Creates "rename" message. |
IChatStatusMessage |
createStatusMessage(int aMessageId,
IChatSender aSender,
EnumStatus aStatus,
java.lang.String aGreetingMessage)
Creates STATUS message. |
IChatStatusReqMessage |
createStatusReqMessage(int aMessageId,
IChatSender aSender)
Creates STATUS_REQ message. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.web_visage.ichat.IChatMessageFactory |
---|
createForwardMessage, createMessage, createServerForwardMessage |
Constructor Detail |
---|
public AbstractMessageFactory(java.lang.String version)
version
- -
ichat client versionMethod Detail |
---|
public IChatAlertMessage createAlertMessage(int aMessageId, IChatSender aSender, java.lang.String anAlertText)
createAlertMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
sender objectanAlertText
- -
alert text
public IChatBoardMessage createBoardMessage(int aMessageId, IChatSender aSender, int aBlockNumber, java.lang.String aText)
createBoardMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
a senderaBlockNumber
- -
a block numberaText
- -
a message text
public IChatTextMessage createBroadcastMessage(int aMessageId, IChatSender aSender, java.lang.String aText)
createBroadcastMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
a senderaText
- -
text of the public message
public IChatConnectMessage createConnectMessage(int aMessageId, IChatSender aSender, java.lang.String aLogin, java.lang.String aNickName, java.lang.String aGreetingMessage, java.lang.String aRecepient, EnumStatus aStatus)
createConnectMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message id (increments with each message sent)aSender
- -
a sender objectaLogin
- -
user's system loginaNickName
- -
your nick nameaGreetingMessage
- -
greeting messageaStatus
- -
user status
public IChatConnectMessage createConnectToLineMessage(int aMessageId, IChatSender aSender, java.lang.String aLogin, java.lang.String aNickName, java.lang.String aLine, java.lang.String aGreetingMessage, EnumStatus aStatus)
createConnectToLineMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message id (increments with each message sent)aSender
- -
a senderaLogin
- -
user's system loginaNickName
- -
your nick nameaLine
- -
line nameaGreetingMessage
- -
greeting messageaStatus
- -
user status
public IChatCreateMessage createCreateMessage(int aMessageId, IChatSender aSender, java.lang.String aLineId, java.lang.String aReceiver)
createCreateMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
sender objectaLineId
- -
line identifieraReceiver
- -
receiver
public IChatCreateLineMessage createCreateLineMessage(int aMessageId, IChatSender aSender, java.lang.String aLine, java.lang.String aPassword)
createCreateLineMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
a sender objectaLine
- -
a line nameaPassword
- -
the line password
public IChatMessage createDisconnectFromLineMessage(int aMessageId, IChatSender aSender, java.lang.String aLineName)
createDisconnectFromLineMessage
in interface IChatMessageFactory
aMessageId
- aSender
- aLineName
-
public IChatDisconnectMessage createDisconnectMessage(int aMessageId, IChatSender aSender)
createDisconnectMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message id (increments with each message sent)aSender
- -
a sender
public IChatMeMessage createMeMessage(int aMessageId, IChatSender aSender, java.lang.String aText)
createMeMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
sender objectaNewNick
- -
new nickname
public IChatMessage createPrivateMessage(int aMessageId, IChatSender aSender, java.lang.String aReceiver, java.lang.String aText)
createPrivateMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
a senderaText
- -
text of the public messageaReceiver
- -
receiver of the message
public IChatTextMessage createPublicMessage(int aMessageId, IChatSender aSender, java.lang.String aText)
createPublicMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
a senderaText
- -
text of the public message
public IChatReceivedMessage createReceivedMessage(int aMessageId, IChatSender aSender, java.lang.String aConfirmationText)
createReceivedMessage
in interface IChatMessageFactory
aMessageId
- aSender
- aConfirmationText
-
public IChatRefreshMessage createRefreshLineMessage(int aMessageId, IChatSender aSender, java.lang.String aLogin, java.lang.String aNickName, java.lang.String aLineName, java.lang.String aGreetingMessage, java.lang.String aReceiver, EnumStatus aStatus)
createRefreshLineMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
fully qualified sender name [ip-address/netbios-name/login]
(192.168.1.11/SOME/name1)aLogin
- aNickName
- aLineName
- aGreetingMessage
- aStatus
-
public IChatRefreshBoardMessage createRefreshBoardMessage(int aMessageId, IChatSender aSender)
createRefreshBoardMessage
in interface IChatMessageFactory
aMessageId
- -
an incremental message idaSender
- -
sender object
public IChatRefreshMessage createRefreshMessage(int aMessageId, IChatSender aSender, java.lang.String aLogin, java.lang.String aNickName, java.lang.String aGreetingMessage, java.lang.String aReceiver, EnumStatus aStatus)
createRefreshMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
fully qualified sender name [ip-address/netbios-name/login]
(192.168.1.11/SOME/name1)aLogin
- aNickName
- aGreetingMessage
- aStatus
-
public IChatRenameMessage createRenameMessage(int aMessageId, IChatSender aSender, java.lang.String aNewNick)
createRenameMessage
in interface IChatMessageFactory
aMessageId
- aSender
- aNewNick
-
public IChatStatusMessage createStatusMessage(int aMessageId, IChatSender aSender, EnumStatus aStatus, java.lang.String aGreetingMessage)
createStatusMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
a senderaStatus
- -
a statusaGreetingMessage
-
public IChatStatusReqMessage createStatusReqMessage(int aMessageId, IChatSender aSender)
createStatusReqMessage
in interface IChatMessageFactory
aMessageId
- -
incremental message idaSender
- -
a sender
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |