JonasWebservices.java

00001 
00028 package org.objectweb.jonas_ws.deployment.xml;
00029 
00030 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00031 import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
00032 import org.objectweb.jonas_lib.deployment.xml.TopLevelElement;
00033 
00040 public class JonasWebservices extends AbsElement  implements TopLevelElement {
00041 
00045     private String header = null;
00046 
00050     private String war = null;
00051 
00055     private String contextRoot = null;
00056 
00060     private JLinkedList jwsDescList = null;
00061 
00065     public JonasWebservices() {
00066         super();
00067         jwsDescList = new JLinkedList("jonas-webservice-description");
00068     }
00069 
00074     public String getWar() {
00075         return war;
00076     }
00077 
00082     public void setWar(String war) {
00083         this.war = war;
00084     }
00085 
00089     public String getContextRoot() {
00090         return contextRoot;
00091     }
00092 
00096     public void setContextRoot(String contextRoot) {
00097         this.contextRoot = contextRoot;
00098     }
00099 
00104     public JLinkedList getJonasWebserviceDescriptionList() {
00105         return jwsDescList;
00106     }
00107 
00108 
00113     public void addJonasWebserviceDescription(JonasWebserviceDescription jwsd) {
00114         jwsDescList.add(jwsd);
00115     }
00116 
00122     public String toXML(int indent) {
00123         StringBuffer sb = new StringBuffer();
00124         sb.append(indent(indent));
00125         sb.append("<jonas-webservices>\n");
00126 
00127         indent += 2;
00128 
00129         // war
00130         sb.append(xmlElement(war, "war", indent));
00131         // context-root
00132         sb.append(xmlElement(contextRoot, "context-root", indent));
00133         // jonas-webservice-description
00134         sb.append(jwsDescList.toXML(indent));
00135 
00136         indent -= 2;
00137         sb.append(indent(indent));
00138         sb.append("</jonas-webservices>\n");
00139 
00140         return sb.toString();
00141     }
00145     public String getHeader() {
00146         return header;
00147     }
00148 
00152     public void setHeader(String header) {
00153         this.header = header;
00154     }
00155 
00156 }

Generated on Tue Feb 15 15:06:00 2005 for JOnAS by  doxygen 1.3.9.1