| com.sun.tck.wma.MessageConnection
All known Subclasses: com.sun.tck.wma.sms.SMSMessageConnection, com.sun.tck.wma.cbs.CBSMessageConnection, com.sun.tck.wma.mms.MMSMessageConnection,
MessageConnection | public interface MessageConnection (Code) | | A connection handler for generic message receiving and sending.
|
Field Summary | |
final public static String | BINARY_MESSAGE Constant designating a message type for binary
messages, i.e. | final public static String | MULTIPART_MESSAGE Constant designating a message type for multipart MIME
messages, i.e. | final public static String | TEXT_MESSAGE Constant designating a message type for text
messages, i.e. |
BINARY_MESSAGE | final public static String BINARY_MESSAGE(Code) | | Constant designating a message type for binary
messages, i.e. value = "binary".
When this constant is used for the newMessage() methods
type parameter, the new Message object
will implement the BinaryMessage interface.
|
MULTIPART_MESSAGE | final public static String MULTIPART_MESSAGE(Code) | | Constant designating a message type for multipart MIME
messages, i.e. value = "multipart".
When this constant is used for the newMessage() methods
type parameter, the new Message object
will implement the MultipartMessage interface.
since: WMA 2.0 |
TEXT_MESSAGE | final public static String TEXT_MESSAGE(Code) | | Constant designating a message type for text
messages, i.e. value = "text".
When this constant is used for the newMessage() methods
type parameter, the new Message object
will implement the TextMessage interface.
|
newMessage | public Message newMessage(String type)(Code) | | Constructs a new message object of a specified type.
Parameters: type - the type of message to create. throws: java.lang.IllegalArgumentException - if the messagetype isn't BINARY_MESSAGE orTEXT_MESSAGE a newly constructed message object of a given type |
|
|