|
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 | |||||||||
public interface OperationSetSmsMessaging
Provides basic functionality for sending and receiving SMS Messages.
| Field Summary | |
|---|---|
static String |
DEFAULT_MIME_ENCODING
Default encoding for outgoing messages. |
static String |
DEFAULT_MIME_TYPE
Default mime type for outgoing messages. |
| Method Summary | |
|---|---|
void |
addMessageListener(MessageListener listener)
Registers a MessageListener with this operation set so that it gets notifications of successful message delivery, failure or reception of incoming messages.. |
Message |
createMessage(byte[] content,
String contentType,
String contentEncoding)
Create a Message instance for sending arbitrary MIME-encoding content. |
Message |
createMessage(String messageText)
Create a Message instance for sending a sms messages with default (text/plain) content type and encoding. |
boolean |
isContentTypeSupported(String contentType)
Determines whether the protocol supports the supplied content type |
void |
removeMessageListener(MessageListener listener)
Unregisters listener so that it won't receive any further notifications upon successful message delivery, failure or reception of incoming messages.. |
void |
sendSmsMessage(Contact to,
Message message)
Sends the message to the destination indicated by the to contact. |
void |
sendSmsMessage(String to,
Message message)
Sends the message to the destination indicated by the to parameter. |
| Field Detail |
|---|
static final String DEFAULT_MIME_ENCODING
static final String DEFAULT_MIME_TYPE
| Method Detail |
|---|
Message createMessage(byte[] content,
String contentType,
String contentEncoding)
content - content valuecontentType - the MIME-type for contentcontentEncoding - encoding used for content
Message createMessage(String messageText)
messageText - the string content of the message.
void sendSmsMessage(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 belonging to the underlying implementation.
void sendSmsMessage(String to,
Message message)
throws IllegalStateException,
IllegalArgumentException
to - the destination 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 belonging to the underlying implementation.void addMessageListener(MessageListener listener)
listener - the MessageListener to register.void removeMessageListener(MessageListener listener)
listener - the MessageListener to unregister.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 | |||||||||