1 27 package org.objectweb.jonas_ear.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class Web extends AbsElement { 37 38 41 private String webUri = null; 42 43 46 private String contextRoot = null; 47 48 49 52 public Web() { 53 super(); 54 } 55 56 60 public String getWebUri() { 61 return webUri; 62 } 63 64 68 public void setWebUri(String webUri) { 69 this.webUri = webUri; 70 } 71 72 76 public String getContextRoot() { 77 return contextRoot; 78 } 79 80 84 public void setContextRoot(String contextRoot) { 85 this.contextRoot = contextRoot; 86 } 87 88 93 public String toXML(int indent) { 94 StringBuffer sb = new StringBuffer (); 95 sb.append(indent(indent)); 96 sb.append("<web>\n"); 97 98 indent += 2; 99 100 sb.append(xmlElement(webUri, "web-uri", indent)); 102 sb.append(xmlElement(contextRoot, "context-root", indent)); 104 indent -= 2; 105 sb.append(indent(indent)); 106 sb.append("</web>\n"); 107 108 return sb.toString(); 109 } 110 } 111 | Popular Tags |