1 5 package xdoclet.modules.bea.wls.web; 6 7 import xdoclet.XDocletException; 8 9 import xdoclet.XmlSubTask; 10 import xdoclet.util.Translator; 11 12 20 public class WeblogicWebXmlSubTask extends XmlSubTask 21 { 22 25 private final static String DEFAULT_TEMPLATE_FILE = "resources/weblogic_web_xml.xdt"; 26 27 30 private final static String GENERATED_FILE_NAME = "weblogic.xml"; 31 32 private final static String WEBLOGIC_WEB_PUBLICID = "-//BEA Systems, Inc.//DTD Web Application 6.0//EN"; 33 34 private final static String WEBLOGIC_WEB_SYSTEMID = "http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd"; 35 36 private final static String WEBLOGIC_WEB_DTD_FILE_NAME = "resources/weblogic-web-jar.dtd"; 37 38 41 private String securityDomain = ""; 42 43 46 private String description; 47 48 51 private String contextRoot = null; 52 53 56 private String version = "6.1"; 57 58 63 public WeblogicWebXmlSubTask() throws XDocletException 64 { 65 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 66 setDestinationFile(GENERATED_FILE_NAME); 67 setPublicId(WEBLOGIC_WEB_PUBLICID); 68 setSystemId(WEBLOGIC_WEB_SYSTEMID); 69 setDtdURL(getClass().getResource(WEBLOGIC_WEB_DTD_FILE_NAME)); 70 setDescription(Translator.getString(XDocletModulesBeaWlsWebMessages.class, XDocletModulesBeaWlsWebMessages.GENERATED_ATTRIBUTE)); 71 } 72 73 78 public String getVersion() 79 { 80 return version; 81 } 82 83 88 public String getSecuritydomain() 89 { 90 return securityDomain; 91 } 92 93 98 public String getDescription() 99 { 100 return description; 101 } 102 103 108 public String getContextRoot() 109 { 110 return contextRoot; 111 } 112 113 118 public void setVersion(String version) 119 { 120 this.version = version; 121 } 122 123 128 public void setSecuritydomain(String securityDomain) 129 { 130 this.securityDomain = securityDomain; 131 } 132 133 138 public void setDescription(String description) 139 { 140 this.description = description; 141 } 142 143 148 public void setContextRoot(String contextRoot) 149 { 150 this.contextRoot = contextRoot; 151 } 152 153 } 154 | Popular Tags |