KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > joram > mom > notifications > GetProxyIdNot


1 /*
2  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3  * Copyright (C) 2001 - 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): David Feliot (ScalAgent)
22  * Contributor(s):
23  */

24 package org.objectweb.joram.mom.notifications;
25
26 import fr.dyade.aaa.agent.*;
27
28 /**
29  * Transient notification
30  */

31 public class GetProxyIdNot extends SyncNotification {
32   
33   private String JavaDoc userName;
34
35   private String JavaDoc password;
36
37   private String JavaDoc inaddr;
38
39   public GetProxyIdNot(String JavaDoc userName,
40                String JavaDoc password,
41                        String JavaDoc inaddr) {
42     this.userName = userName;
43     this.password = password;
44     this.inaddr = inaddr;
45   }
46
47   public final String JavaDoc getUserName() {
48     return userName;
49   }
50
51   public final String JavaDoc getPassword() {
52     return password;
53   }
54
55   public final String JavaDoc getInAddr() {
56     return inaddr;
57   }
58
59   public void Return(AgentId proxyId) {
60     Return(new Object JavaDoc[]{proxyId});
61   }
62
63   public final AgentId getProxyId() {
64     return (AgentId)getValue(0);
65   }
66 }
67
68
Popular Tags