KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > Virtualhost


1 /*
2  * eAdmin/OWX
3  * Copyright (C) 1996-2003 OWX-Project Team <owx-team@gmx.net>
4  */

5
6 package com.raptus.owxv3;
7
8
9
10 /**
11  * Virtualhost bean
12  *
13  * <hr>
14  * <table width="100%" border="0">
15  * <tr>
16  * <td width="24%"><b>Filename</b></td><td width="76%">Virtualhost.java</td>
17  * </tr>
18  * <tr>
19  * <td width="24%"><b>Author</b></td><td width="76%">Guy Zürcher (gzuercher@raptus.com)</td>
20  * </tr>
21  * <tr>
22  * <td width="24%"><b>Date</b></td><td width="76%">14th of April 2001</td>
23  * </tr>
24  * </table>
25  * <hr>
26  * <table width="100%" border="0">
27  * <tr>
28  * <td width="24%"><b>Date / Author</b></td><td width="76%"><b>Changes</b></td>
29  * </tr>
30  * </table>
31  * <hr>
32  */

33 public class Virtualhost extends Object JavaDoc
34 {
35   /**
36    * Virtualhost's ID
37    */

38   protected String JavaDoc identification;
39
40   /**
41    * Fully qualified hostname (setup by DNS)
42    */

43   protected String JavaDoc hostname;
44
45   /**
46    * User ID of a user tagged as webmaster
47    */

48   protected String JavaDoc webmaster;
49
50   /**
51    * default constructor does nothing
52    */

53   public Virtualhost()
54   {
55       ConfigManager cm = ConfigManager.getInstance();
56       Configuration cfg = cm.getConfiguration();
57
58       identification = cfg.getStringByKey(Constants.VIRTUALHOST_IDENTIFICATION);
59       hostname = cfg.getStringByKey(Constants.VIRTUALHOST_HOSTNAME);
60       webmaster = cfg.getStringByKey(Constants.VIRTUALHOST_WEBMASTER);
61   }
62   
63   public String JavaDoc getIdentification() { return identification; }
64   public String JavaDoc getHostname() { return hostname; }
65   public String JavaDoc getWebmasterID() { return webmaster; }
66   
67   // ADDEDBYJANCSI
68

69   // this belongs to virtualhost too...
70
protected boolean multiuser;
71   
72   public Virtualhost(String JavaDoc webmaster, String JavaDoc hostname, String JavaDoc ident, boolean multi)
73   {
74     this.webmaster = webmaster;
75     this.identification = ident;
76     this.hostname = hostname;
77     this.multiuser = multi;
78   }
79   
80   public void setIdentification(String JavaDoc identification)
81   {
82       this.identification = identification;
83   }
84   
85   public void setHostname(String JavaDoc hstname)
86   {
87       this.hostname = hstname;
88   }
89       
90   public void setWebmasterID(String JavaDoc webmaster)
91   {
92       this.webmaster = webmaster;
93   }
94   
95   public void setMultiuser(boolean multiuser)
96   {
97       this.multiuser = multiuser;
98   }
99   
100   public boolean isMultiuser()
101   {
102       return multiuser;
103   }
104 }
105
106 /* end class Virtualhost */
107
Popular Tags