KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > zirc > base > Server


1 package zirc.base ;
2
3 //zIrc, irc client.
4
// Copyright (C) 2004 CoolBytes(Stephane claret, Andre Aymon, Alban Zumofen) coolbytes@hotmail.com
5
//
6
// This program is free software; you can redistribute it and/or
7
// modify it under the terms of the GNU General Public License
8
// as published by the Free Software Foundation; either version 2
9
// of the License, or (at your option) any later version.
10
//
11
// This program 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
14
// GNU General Public License for more details.
15

16 /**
17  * <p>Title: Server</p>
18  * <p>Description: objet serveur employe pour les favoris</p>
19  * <p>Copyright: Copyright (c) 2004</p>
20  * <p>Company: CoolBytes(Stephane claret, Andre Aymon, Alban Zumofen) coolbytes@hotmail.com</p>
21  * @version 1.0
22  */

23
24 public class Server
25 {
26   private String JavaDoc reseau = "" ;
27   private String JavaDoc nom = "" ;
28   private String JavaDoc adress = "" ;
29   private String JavaDoc port = "" ;
30
31   public Server()
32   {
33   }
34
35   public Server(String JavaDoc _reseau, String JavaDoc _nom, String JavaDoc _adress, String JavaDoc _port)
36   {
37     reseau = _reseau ;
38     nom = _nom ;
39     adress = _adress ;
40     port = _port ;
41   }
42
43   public String JavaDoc toString()
44   {
45     return adress ;
46   }
47
48   public void setReseau(String JavaDoc _reseau)
49   {
50     reseau = _reseau ;
51   }
52
53   public void setNom(String JavaDoc _nom)
54   {
55     nom = _nom ;
56   }
57
58   public void setAdress(String JavaDoc _adress)
59   {
60     adress = _adress ;
61   }
62
63   public void setPort(String JavaDoc _port)
64   {
65     port = _port ;
66   }
67
68   public String JavaDoc getReseau()
69   {
70     return reseau ;
71   }
72
73   public String JavaDoc getNom()
74   {
75     return nom ;
76   }
77
78   public String JavaDoc getAdress()
79   {
80     return adress ;
81   }
82
83   public String JavaDoc getPort()
84   {
85     return port ;
86   }
87
88 }
89
Popular Tags