|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.zion.jbuddy.IMessageFactory
public final class IMessageFactory
Creates new IMessage instances.
This can be used to send various messages and notices, instead of being limited to normal Instant Messages.
This class contains only factory methods. It cannot be instantiated.
IClient.sendMessage(IMessage)
,
IConference.sendMessage(IMessage)
Constructor Summary | |
---|---|
IMessageFactory()
|
Method Summary | |
---|---|
static IMessage |
factory(int type,
IClient client,
String recipient,
RichContent richContent)
Creates an IMessage instance using the specified arguments. |
static IMessage |
factory(int type,
IClient client,
String recipient,
String message)
Creates an IMessage instance using the specified arguments. |
static IMessage |
factory(int type,
IConference conference,
RichContent richContent)
Creates an IMessage instance using the specified arguments. |
static IMessage |
factory(int type,
IConference conference,
String message)
Creates an IMessage instance using the specified arguments. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IMessageFactory() throws InstantiationException
InstantiationException
Method Detail |
---|
public static IMessage factory(int type, IClient client, String recipient, RichContent richContent) throws Exception
The IMessage's getSeqNum
method will
return -1 until the message has been successfully sent through
IClient.sendMessage
.
type
- the message's type (from IMessage constants)client
- the client for which the message is to be createdrecipient
- the unique name for the user that is to receive the
messagerichContent
- the contents of the message
Exception
public static IMessage factory(int type, IClient client, String recipient, String message) throws Exception
The IMessage's getSeqNum
method will
return -1 until the message has been successfully sent through
IClient.sendMessage
.
type
- the message's type (from IMessage constants)client
- the client for which the message is to be createdrecipient
- the unique name for the user that is to receive the
messagemessage
- the contents of the message
Exception
public static IMessage factory(int type, IConference conference, RichContent richContent) throws Exception
The IMessage's getSeqNum
method will
return -1 until the message has been successfully sent through
{IConference#sendMessage(IMessage) IConference.sendMessage}.
type
- the message's type (from IMessage constants)conference
- the conference the message will be sent torichContent
- the contents of the message
Exception
public static IMessage factory(int type, IConference conference, String message) throws Exception
The IMessage's getSeqNum
method will
return -1 until the message has been successfully sent through
{IConference#sendMessage(IMessage) IConference.sendMessage}.
type
- the message's type (from IMessage constants)conference
- the conference the message will be sent tomessage
- the contents of the message
Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |