Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
MessageProperties.MSG_TYPE メッセージプロパティの定数値を定義します。
public interface MessageType
継承されたメンバーを含む MessageType インターフェイスのすべてのメンバー。
NETWORK_STATUS_NOTIFICATION 変数
PUSH_NOTIFICATION 変数
REGULAR 変数
次の例は、QAnywhere システムメッセージの処理で使用される onSystemMessage(QAMessage) メソッドを示します。メッセージタイプは、MessageType.NETWORK_STATUS_NOTIFICATION と比較されます。
private void onSystemMessage(QAMessage msg) { QATextMessage t_msg; int msg_type; String network_adapters; String network_names; String network_info; t_msg = (QATextMessage)msg; if( t_msg != null ) { // Evaluate message type. msg_type = t_msg.getIntProperty( MessageProperties.MSG_TYPE ); if( msg_type == MessageType.NETWORK_STATUS_NOTIFICATION ) { // Handle network status notification. } } }
NETWORK_STATUS_NOTIFICATION 変数PUSH_NOTIFICATION 変数REGULAR 変数