KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > web > talk > messaging > DndResponseMessage


1 /*
2  * ChangePasswordResponseMessage.java
3  *
4  * Created on July 3, 2002, 11:57 PM
5  */

6
7 package com.quikj.application.web.talk.messaging;
8
9 /**
10  *
11  * @author amit
12  */

13 public class DndResponseMessage implements TalkMessageInterface
14 {
15     public static final String JavaDoc MESSAGE_TYPE = "dnd_response";
16     
17     private String JavaDoc errorMessage = "";
18     
19     /** Creates a new instance of DndResponseMessage */
20     public DndResponseMessage()
21     {
22     }
23     
24     public String JavaDoc format()
25     {
26         return "<?xml version=\"1.0\" encoding=\"us-ascii\"?>\n"
27         + "<dnd/>\n";
28     }
29     
30     public String JavaDoc getErrorMessage()
31     {
32         return errorMessage;
33     }
34     
35     public String JavaDoc messageType()
36     {
37         return MESSAGE_TYPE;
38     }
39     
40     public boolean parse(Object JavaDoc node_object)
41     {
42         return true;
43     }
44 }
45
Popular Tags