Example #1
0
 public void addWelcomeFile(String s) {
   // user specified at least one user welcome file, remove the system
   // files
   if (s == null) return;
   s = s.trim();
   if (s.length() == 0) return;
   if (expectUserWelcomeFiles) {
     removeWelcomeFiles();
     expectUserWelcomeFiles = false;
   }
   welcomeFiles.addElement(s);
 }
Example #2
0
 public Enumeration getHostAliases() {
   return vhostAliases.elements();
 }
Example #3
0
 public Enumeration getWelcomeFiles() {
   return welcomeFiles.elements();
 }
Example #4
0
 /**
  * Virtual host support - this context will be part of a virtual host with the specified name. You
  * should set all the aliases. XXX Not implemented
  */
 public void addHostAlias(String alias) {
   vhostAliases.addElement(alias);
 }