|
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.impl.gui.main.chat.conference.ConferenceChatTransport
public class ConferenceChatTransport
The conference implementation of the ChatTransport interface that provides abstraction to access to protocol providers.
| Constructor Summary | |
|---|---|
ConferenceChatTransport(ChatSession chatSession,
ChatRoom chatRoom)
Creates an instance of ConferenceChatTransport by specifying the parent chat session and the chat room associated with this transport. |
|
| Method Summary | |
|---|---|
void |
addInstantMessageListener(MessageListener l)
Adds an instant message listener to this chat transport. |
void |
addSmsMessageListener(MessageListener l)
Adds an sms message listener to this chat transport. |
boolean |
allowsInstantMessage()
Returns true if this chat transport supports instant
messaging, otherwise returns false. |
boolean |
allowsSmsMessage()
Returns true if this chat transport supports sms
messaging, otherwise returns false. |
boolean |
allowsTypingNotifications()
Returns true if this chat transport supports typing
notifications, otherwise returns false. |
void |
dispose()
Disposes this chat transport. |
Object |
getDescriptor()
Returns the descriptor of this chat transport. |
String |
getDisplayName()
Returns the display name corresponding to this chat transport. |
long |
getMaximumFileLength()
Returns the maximum file length supported by the protocol in bytes. |
String |
getName()
Returns the contact address corresponding to this chat transport. |
ChatSession |
getParentChatSession()
Returns the parent session of this chat transport. |
ProtocolProviderService |
getProtocolProvider()
Returns the ProtocolProviderService, corresponding to this chat transport. |
PresenceStatus |
getStatus()
Returns the presence status of this transport. |
void |
inviteChatContact(String contactAddress,
String reason)
Invites the given contact in this chat conference. |
boolean |
isContentTypeSupported(String contentType)
Determines whether this chat transport supports the supplied content type |
void |
removeInstantMessageListener(MessageListener l)
Removes the instant message listener from this chat transport. |
void |
removeSmsMessageListener(MessageListener l)
Removes the given sms message listener from this chat transport. |
FileTransfer |
sendFile(File file)
Sending files through a chat room is not yet supported by this chat transport implementation. |
void |
sendInstantMessage(String messageText,
String mimeType)
Sends the given instant message trough this chat transport, by specifying the mime type (html or plain text). |
void |
sendSmsMessage(Contact contact,
String message)
Sending sms messages is not supported by this chat transport implementation. |
void |
sendSmsMessage(String phoneNumber,
String message)
Sending sms messages is not supported by this chat transport implementation. |
int |
sendTypingNotification(int typingState)
Sending typing notifications is not supported by this chat transport implementation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConferenceChatTransport(ChatSession chatSession,
ChatRoom chatRoom)
chatSession - the parent chat session.chatRoom - the chat room associated with this conference transport.| Method Detail |
|---|
public String getName()
getName in interface ChatTransportpublic String getDisplayName()
getDisplayName in interface ChatTransportpublic PresenceStatus getStatus()
getStatus in interface ChatTransportpublic ProtocolProviderService getProtocolProvider()
getProtocolProvider in interface ChatTransportpublic boolean allowsInstantMessage()
true if this chat transport supports instant
messaging, otherwise returns false.
allowsInstantMessage in interface ChatTransporttrue if this chat transport supports instant
messaging, otherwise returns false.public boolean allowsSmsMessage()
true if this chat transport supports sms
messaging, otherwise returns false.
allowsSmsMessage in interface ChatTransporttrue if this chat transport supports sms
messaging, otherwise returns false.public boolean allowsTypingNotifications()
true if this chat transport supports typing
notifications, otherwise returns false.
allowsTypingNotifications in interface ChatTransporttrue if this chat transport supports typing
notifications, otherwise returns false.
public void sendInstantMessage(String messageText,
String mimeType)
throws Exception
sendInstantMessage in interface ChatTransportmessageText - The message to send.mimeType - The mime type of the message to send: text/html or
text/plain.
Exception - if the send doesn't succeedpublic boolean isContentTypeSupported(String contentType)
isContentTypeSupported in interface ChatTransportcontentType - the type we want to check
public void sendSmsMessage(String phoneNumber,
String message)
throws Exception
sendSmsMessage in interface ChatTransportphoneNumber - the phone number to which to send the messagemessage - The message to send.
Exception - if the send doesn't succeed
public void sendSmsMessage(Contact contact,
String message)
throws Exception
sendSmsMessage in interface ChatTransportcontact - the phone number to which to send the messagemessage - The message to send.
Exception - if the send doesn't succeedpublic int sendTypingNotification(int typingState)
sendTypingNotification in interface ChatTransporttypingState - the typing notification state to send
public FileTransfer sendFile(File file)
throws Exception
sendFile in interface ChatTransportfile - the file to send
Exception - if the send doesn't succeedpublic long getMaximumFileLength()
getMaximumFileLength in interface ChatTransport
public void inviteChatContact(String contactAddress,
String reason)
inviteChatContact in interface ChatTransportcontactAddress - the address of the contact to invitereason - the reason for the invitationpublic ChatSession getParentChatSession()
getParentChatSession in interface ChatTransportpublic void addSmsMessageListener(MessageListener l)
addSmsMessageListener in interface ChatTransportl - The message listener to add.public void addInstantMessageListener(MessageListener l)
addInstantMessageListener in interface ChatTransportl - The message listener to add.public void removeSmsMessageListener(MessageListener l)
removeSmsMessageListener in interface ChatTransportl - The message listener to remove.public void removeInstantMessageListener(MessageListener l)
removeInstantMessageListener in interface ChatTransportl - The message listener to remove.public void dispose()
ChatTransport
dispose in interface ChatTransportpublic Object getDescriptor()
getDescriptor in interface ChatTransport
|
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 | |||||||||