|
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.zeroconf.OperationSetBasicInstantMessagingZeroconfImpl
public class OperationSetBasicInstantMessagingZeroconfImpl
Instant messaging functionalities for the Zeroconf protocol.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetBasicInstantMessaging |
|---|
DEFAULT_MIME_ENCODING, DEFAULT_MIME_TYPE, HTML_MIME_TYPE |
| Constructor Summary | |
|---|---|
OperationSetBasicInstantMessagingZeroconfImpl(ProtocolProviderServiceZeroconfImpl provider,
OperationSetPersistentPresenceZeroconfImpl opSetPersPresence)
Creates an instance of this operation set keeping a reference to the parent protocol provider and presence operation set. |
|
| Method Summary | |
|---|---|
Message |
createMessage(String content,
String contentType,
String encoding,
String subject)
Create a Message instance for sending arbitrary MIME-encoding content. |
void |
fireMessageReceived(Message message,
Contact from)
Notifies all registered message listeners that a message has been received. |
boolean |
isContentTypeSupported(String contentType)
Determines whether the protocol supports the supplied content type |
boolean |
isOfflineMessagingSupported()
Determines whether the protocol provider (or the protocol itself) support sending and receiving offline messages. |
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, isContentTypeSupported, messageDeliveryPendingTransform, removeMessageListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationSetBasicInstantMessagingZeroconfImpl(ProtocolProviderServiceZeroconfImpl provider,
OperationSetPersistentPresenceZeroconfImpl opSetPersPresence)
provider - The provider instance that creates us.opSetPersPresence - the currently valid
OperationSetPersistentPresenceZeroconfImpl instance.| Method Detail |
|---|
public Message createMessage(String content,
String contentType,
String encoding,
String subject)
OperationSetBasicInstantMessaging
createMessage in interface OperationSetBasicInstantMessagingcreateMessage in class AbstractOperationSetBasicInstantMessagingcontent - content valuecontentType - the MIME-type for contentencoding - encoding used for contentsubject - a String subject or null for now
subject.
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 Zeroconf stack is not
registered and initialized.
IllegalArgumentException - if to is not an instance
belonging to the underlying implementation.
public void fireMessageReceived(Message message,
Contact from)
fireMessageReceived in class AbstractOperationSetBasicInstantMessagingmessage - the Message that has been received.from - the Contact that message was received from.public boolean isOfflineMessagingSupported()
public boolean isContentTypeSupported(String contentType)
contentType - the type we want to check
|
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 | |||||||||