|
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
public abstract class AbstractMessage
Represents a default implementation of Message in order to make it
easier for implementers to provide complete solutions while focusing on
implementation-specific details.
| Constructor Summary | |
|---|---|
protected |
AbstractMessage(String content,
String contentType,
String encoding,
String subject)
|
protected |
AbstractMessage(String content,
String contentType,
String encoding,
String subject,
String messageUID)
|
| Method Summary | |
|---|---|
protected String |
createMessageUID()
|
String |
getContent()
Returns the content of this message if representable in text form or null if this message does not contain text data. |
String |
getContentType()
Returns the MIME type for the message content. |
String |
getEncoding()
Returns the MIME content encoding of this message. |
String |
getMessageUID()
Returns a unique identifier of this message. |
byte[] |
getRawData()
Get the raw/binary content of an instant message. |
int |
getSize()
Returns the size of the content stored in this message. |
String |
getSubject()
Returns the subject of this message or null if the message contains no subject. |
protected void |
setContent(String content)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractMessage(String content,
String contentType,
String encoding,
String subject)
protected AbstractMessage(String content,
String contentType,
String encoding,
String subject,
String messageUID)
| Method Detail |
|---|
protected String createMessageUID()
public final String getContent()
The implementation is final because it caches the raw data of the content.
getContent in interface Messagepublic String getContentType()
Message
getContentType in interface Messagepublic final String getEncoding()
The implementation is final because of the presumption it can set the encoding.
getEncoding in interface Messagepublic String getMessageUID()
Message
getMessageUID in interface Messagepublic byte[] getRawData()
Message
getRawData in interface Messagepublic int getSize()
Message
getSize in interface Messagepublic String getSubject()
Message
getSubject in interface Messageprotected void setContent(String content)
|
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 | |||||||||