1 17 package org.alfresco.web.config; 18 19 import org.alfresco.config.ConfigElement; 20 import org.alfresco.config.element.ConfigElementAdapter; 21 22 27 public class ServerConfigElement extends ConfigElementAdapter 28 { 29 private String errorPage; 30 private String loginPage; 31 32 35 public ServerConfigElement() 36 { 37 super("server"); 38 } 39 40 45 public ServerConfigElement(String name) 46 { 47 super(name); 48 } 49 50 public ConfigElement combine(ConfigElement configElement) 51 { 52 55 ServerConfigElement combined = new ServerConfigElement(); 56 combined.setErrorPage(((ServerConfigElement)configElement).getErrorPage()); 57 combined.setLoginPage(((ServerConfigElement)configElement).getLoginPage()); 58 return combined; 59 } 60 61 64 public String getErrorPage() 65 { 66 return this.errorPage; 67 } 68 69 72 public void setErrorPage(String errorPage) 73 { 74 this.errorPage = errorPage; 75 } 76 77 80 public String getLoginPage() 81 { 82 return this.loginPage; 83 } 84 85 88 public void setLoginPage(String loginPage) 89 { 90 this.loginPage = loginPage; 91 } 92 } 93 | Popular Tags |