|
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.AbstractOperationSetBasicInstantMessaging
net.java.sip.communicator.impl.protocol.jabber.OperationSetBasicInstantMessagingJabberImpl
public class OperationSetBasicInstantMessagingJabberImpl
A straightforward implementation of the basic instant messaging operation set.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetBasicInstantMessaging |
|---|
DEFAULT_MIME_ENCODING, DEFAULT_MIME_TYPE, HTML_MIME_TYPE |
| Constructor Summary | |
|---|---|
OperationSetBasicInstantMessagingJabberImpl(ProtocolProviderServiceJabberImpl provider)
Creates an instance of this operation set. |
|
| Method Summary | |
|---|---|
Message |
createMessage(String content,
String contentType)
Create a Message instance for sending arbitrary MIME-encoding content. |
Message |
createMessage(String content,
String contentType,
String encoding,
String subject)
Create a Message instance for sending arbitrary MIME-encoding content. |
boolean |
isContentTypeSupported(String contentType)
Determines wheter the protocol supports the supplied content type |
boolean |
isContentTypeSupported(String contentType,
Contact contact)
Determines whether the protocol supports the supplied content type for the given contact. |
boolean |
isOfflineMessagingSupported()
Determines wheter the protocol provider (or the protocol itself) support sending and receiving offline messages. |
org.jivesoftware.smack.Chat |
obtainChatInstance(String jid)
Returns a reference to an open chat with the specified jid if one exists or creates a new one otherwise. |
void |
sendInstantMessage(Contact to,
Message message)
Sends the message to the destination indicated by the to contact. |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetBasicInstantMessaging |
|---|
addMessageListener, createMessage, createMessage, fireMessageDelivered, fireMessageDeliveryFailed, fireMessageEvent, fireMessageReceived, messageDeliveryPendingTransform, removeMessageListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
OperationSetBasicInstantMessagingJabberImpl(ProtocolProviderServiceJabberImpl provider)
provider - a reference to the ProtocolProviderServiceImpl
that created us and that we'll use for retrieving the underlying aim
connection.| Method Detail |
|---|
public Message createMessage(String content,
String contentType)
content - content valuecontentType - the MIME-type for content
public Message createMessage(String content,
String contentType,
String encoding,
String subject)
createMessage in interface OperationSetBasicInstantMessagingcreateMessage in class AbstractOperationSetBasicInstantMessagingcontent - content valuecontentType - the MIME-type for contentsubject - the Subject of the message that we'd like to create.encoding - the enconding of the message that we will be sending.
public boolean isOfflineMessagingSupported()
public boolean isContentTypeSupported(String contentType)
contentType - the type we want to check
public boolean isContentTypeSupported(String contentType,
Contact contact)
isContentTypeSupported in interface OperationSetBasicInstantMessagingisContentTypeSupported in class AbstractOperationSetBasicInstantMessagingcontentType - the type we want to checkcontact - contact which is checked for supported contentType
public org.jivesoftware.smack.Chat obtainChatInstance(String jid)
jid - the Jabber ID that we'd like to obtain a chat instance for.
public void sendInstantMessage(Contact to,
Message message)
throws IllegalStateException,
IllegalArgumentException
to - the Contact to send message tomessage - the Message to send.
IllegalStateException - if the underlying stack is
not registered and initialized.
IllegalArgumentException - if to is not an
instance of ContactImpl.
|
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 | |||||||||