|
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.yahoo.OperationSetBasicInstantMessagingYahooImpl
public class OperationSetBasicInstantMessagingYahooImpl
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 | |
|---|---|
OperationSetBasicInstantMessagingYahooImpl(ProtocolProviderServiceYahooImpl provider)
Creates an instance of this operation set. |
|
| Method Summary | |
|---|---|
void |
addEventFilter(EventFilter filter)
Registers an EventFilter with this operation set so that events, that do not need processing, are filtered out. |
Message |
createMessage(String content,
String contentType,
String encoding,
String subject)
Create a Message instance for sending arbitrary MIME-encoding content. |
(package private) String |
decodeMessage(String message)
Decode the received chat message. |
protected void |
fireMessageEvent(EventObject evt)
Delivers the specified event to all registered message listeners. |
boolean |
isContentTypeSupported(String contentType)
Determines wheter the protocol supports the supplied content type |
boolean |
isOfflineMessagingSupported()
Determines wheter the protocol provider (or the protocol itself) support sending and receiving offline messages. |
String |
processLinks(String message)
Format links in the given message. |
void |
removeEventFilter(EventFilter filter)
Unregisteres an EventFilter so that it won't check any more if an event should be filtered out. |
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, fireMessageReceived, isContentTypeSupported, messageDeliveryPendingTransform, removeMessageListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
OperationSetBasicInstantMessagingYahooImpl(ProtocolProviderServiceYahooImpl provider)
provider - a ref to the ProtocolProviderServiceImpl
that created us and that we'll use for retrieving the underlying aim
connection.| Method Detail |
|---|
public boolean isOfflineMessagingSupported()
isOfflineMessagingSupported in interface OperationSetBasicInstantMessagingpublic boolean isContentTypeSupported(String contentType)
isContentTypeSupported in interface OperationSetBasicInstantMessagingcontentType - the type we want to check
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
sendInstantMessage in interface OperationSetBasicInstantMessagingto - 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.protected void fireMessageEvent(EventObject evt)
fireMessageEvent in class AbstractOperationSetBasicInstantMessagingevt - the EventObject that we'd like delivered to all
registered message listerners.String decodeMessage(String message)
message - the chat message
public String processLinks(String message)
message - The source message string.
public void addEventFilter(EventFilter filter)
addEventFilter in interface OperationSetInstantMessageFilteringfilter - the EventFilter to register.public void removeEventFilter(EventFilter filter)
removeEventFilter in interface OperationSetInstantMessageFilteringfilter - the EventFilter to unregister.
|
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 | |||||||||