|
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.AbstractOperationSetTypingNotifications<ProtocolProviderServiceSipImpl>
net.java.sip.communicator.impl.protocol.sip.OperationSetTypingNotificationsSipImpl
public class OperationSetTypingNotificationsSipImpl
A implementation of the typing notification operation set. rfc3994
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetTypingNotifications |
|---|
parentProvider |
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetTypingNotifications |
|---|
STATE_PAUSED, STATE_STALE, STATE_STOPPED, STATE_TYPING, STATE_UNKNOWN |
| Constructor Summary | |
|---|---|
OperationSetTypingNotificationsSipImpl(ProtocolProviderServiceSipImpl provider,
OperationSetBasicInstantMessagingSipImpl opSetBasicIm)
Creates an instance of this operation set. |
|
| Method Summary | |
|---|---|
void |
messageDelivered(MessageDeliveredEvent evt)
Called when the underlying implementation has received an indication that a message, sent earlier has been successfully received by the destination. |
void |
messageDeliveryFailed(MessageDeliveryFailedEvent evt)
Called to indicated that delivery of a message sent earlier has failed. |
void |
messageReceived(MessageReceivedEvent evt)
When a message is delivered fire that typing has stopped. |
boolean |
processMessage(javax.sip.RequestEvent requestEvent)
Process the incoming sip messages |
boolean |
processResponse(javax.sip.ResponseEvent responseEvent,
Map<String,Message> sentMsg)
Process the responses of sent messages |
boolean |
processTimeout(javax.sip.TimeoutEvent timeoutEvent,
Map<String,Message> sentMessages)
Process the timeouts of sent messages |
void |
sendTypingNotification(Contact to,
int typingState)
Sends a notification to notifiedContatct that we have entered typingState. |
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetTypingNotifications |
|---|
addTypingNotificationsListener, assertConnected, fireTypingNotificationsEvent, removeTypingNotificationsListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
OperationSetTypingNotificationsSipImpl(ProtocolProviderServiceSipImpl provider,
OperationSetBasicInstantMessagingSipImpl opSetBasicIm)
provider - a ref to the ProtocolProviderServiceImpl
that created us and that we'll use for retrieving the underlying aim
connection.opSetBasicIm - the parent instant messaging operation set.| Method Detail |
|---|
public boolean processMessage(javax.sip.RequestEvent requestEvent)
processMessage in interface SipMessageProcessorrequestEvent - the incoming event holding the message
public boolean processResponse(javax.sip.ResponseEvent responseEvent,
Map<String,Message> sentMsg)
processResponse in interface SipMessageProcessorresponseEvent - the incoming event holding the responsesentMsg - map containing sent messages
public boolean processTimeout(javax.sip.TimeoutEvent timeoutEvent,
Map<String,Message> sentMessages)
processTimeout in interface SipMessageProcessortimeoutEvent - the event holding the requestsentMessages - map containing sent messages
public void sendTypingNotification(Contact to,
int typingState)
throws IllegalStateException,
IllegalArgumentException
OperationSetTypingNotifications
sendTypingNotification in interface OperationSetTypingNotificationsto - the Contact to notifytypingState - the typing state that we have entered.
IllegalStateException - if the underlying ICQ stack is
not registered and initialized.
IllegalArgumentException - if notifiedContact is
not an instance belonging to the underlying implementation.public void messageReceived(MessageReceivedEvent evt)
messageReceived in interface MessageListenerevt - the received message eventpublic void messageDelivered(MessageDeliveredEvent evt)
MessageListener
messageDelivered in interface MessageListenerevt - the MessageDeliveredEvent containing the id of the message
that has caused the event.public void messageDeliveryFailed(MessageDeliveryFailedEvent evt)
MessageListener
messageDeliveryFailed in interface MessageListenerevt - the MessageFailedEvent containing the ID of the
message whose delivery has failed.
|
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 | |||||||||