KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > dyade > aaa > jndi2 > server > JndiReplyNot


1 /*
2  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3  * Copyright (C) 2001 - 2006 ScalAgent Distributed Technologies
4  * Copyright (C) 1996 - Dyade
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA.
20  *
21  * Initial developer(s): Sofiane Chibani
22  * Contributor(s): ScalAgent Distributed Technologies
23  */

24 package fr.dyade.aaa.jndi2.server;
25
26 import fr.dyade.aaa.agent.*;
27 import fr.dyade.aaa.jndi2.msg.*;
28
29 public class JndiReplyNot extends Notification {
30
31   private JndiRequest request;
32   
33   private JndiReply reply;
34
35   public JndiReplyNot(JndiRequest request,
36                       JndiReply reply) {
37     this.request = request;
38     this.reply = reply;
39   }
40
41   public final JndiRequest getRequest() {
42     return request;
43   }
44
45   public final JndiReply getReply() {
46     return reply;
47   }
48
49   /**
50    * Appends a string image for this object to the StringBuffer parameter.
51    *
52    * @param output
53    * buffer to fill in
54    * @return
55     <code>output</code> buffer is returned
56    */

57   public StringBuffer JavaDoc toString(StringBuffer JavaDoc output) {
58     output.append('(');
59     super.toString(output);
60     output.append(",request=").append(request);
61     output.append(",reply=").append(reply);
62     output.append(')');
63
64     return output;
65   }
66 }
67
Popular Tags