1 5 6 package com.raptus.owxv3; 7 8 9 10 33 public class Virtualhost extends Object 34 { 35 38 protected String identification; 39 40 43 protected String hostname; 44 45 48 protected String webmaster; 49 50 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 getIdentification() { return identification; } 64 public String getHostname() { return hostname; } 65 public String getWebmasterID() { return webmaster; } 66 67 69 protected boolean multiuser; 71 72 public Virtualhost(String webmaster, String hostname, String 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 identification) 81 { 82 this.identification = identification; 83 } 84 85 public void setHostname(String hstname) 86 { 87 this.hostname = hstname; 88 } 89 90 public void setWebmasterID(String 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 107 | Popular Tags |