|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.AbstractMessage
net.java.sip.communicator.impl.protocol.zeroconf.MessageZeroconfImpl
public class MessageZeroconfImpl
Very simple message implementation for the Zeroconf protocol.
| Field Summary | |
|---|---|
static int |
DELIVERED
Message indicating that the previsous message was delivered successfully |
static int |
MESSAGE
Normal chat message |
static int |
STREAM_CLOSE
Message indicating that the stream is being closed |
static int |
STREAM_OPEN
Message type indicating that a stream is being created |
static int |
TYPING
Typing notification |
static int |
UNDEF
Undefined message |
| Constructor Summary | |
|---|---|
MessageZeroconfImpl(String content,
String contentEncoding,
int type)
Creates a message instance according to the specified parameters. |
|
MessageZeroconfImpl(String content,
String contentEncoding,
String contentType,
int type)
Creates a message instance according to the specified parameters. |
|
| Method Summary | |
|---|---|
int |
getBaloonColor()
Gets the baloon color declared in messages sent by iChat-like clients |
String |
getContactID()
Returns the contact's ID |
int |
getTextColor()
Returns the text color |
String |
getTextFont()
Returns the text font |
int |
getTextSize()
Returns the text size |
int |
getType()
Returns the type of message. |
void |
setBaloonColor(int baloonColor)
Sets the baloon color declared in messages sent by iChat-like clients |
void |
setContactID(String contactID)
Sets the contact's ID |
void |
setTextColor(int textColor)
Sets the text color |
void |
setTextFont(String textFont)
Sets the text color |
void |
setTextSize(int textSize)
Sets the text size |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractMessage |
|---|
createMessageUID, getContent, getContentType, getEncoding, getMessageUID, getRawData, getSize, getSubject, setContent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int STREAM_OPEN
public static final int MESSAGE
public static final int TYPING
public static final int STREAM_CLOSE
public static final int DELIVERED
public static final int UNDEF
| Constructor Detail |
|---|
public MessageZeroconfImpl(String content,
String contentEncoding,
String contentType,
int type)
content - the message bodycontentEncoding - message encoding or null for UTF8contentType - of the messagetype - Type of message
public MessageZeroconfImpl(String content,
String contentEncoding,
int type)
type - Type of messagecontent - the message bodycontentEncoding - message encoding or null for UTF8| Method Detail |
|---|
public int getType()
public int getBaloonColor()
public void setBaloonColor(int baloonColor)
baloonColor - baloon colorpublic int getTextColor()
public void setTextColor(int textColor)
textColor - Text colorpublic String getTextFont()
public void setTextFont(String textFont)
textFont - Text fontpublic int getTextSize()
public void setTextSize(int textSize)
textSize - Text sizepublic String getContactID()
public void setContactID(String contactID)
contactID - String representing the contact's ID
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||