Methods Summary |
---|
public void | addContextParam(ContextParam contextParam)
contextParamList.add(contextParam);
|
public void | addEjbRef(EjbRef ejbRef)
ejbRefList.add(ejbRef);
|
public void | addEnvEntry(EnvEntry envEntry)
envEntryList.add(envEntry);
|
public void | addErrorPage(ErrorPage errorPage)
errorPageList.add(errorPage);
|
public void | addMimeMapping(MimeMapping mimeMapping)
mimeMappingList.add(mimeMapping);
|
public void | addResourceRef(ResourceRef resourceRef)
resourceRefList.add(resourceRef);
|
public void | addSecurityConstraint(SecurityConstraint securityConstraint)
securityConstraintList.add(securityConstraint);
|
public void | addSecurityRole(SecurityRole securityRole)
securityRoleList.add(securityRole);
|
public void | addServlet(Servlet servlet)
servletList.add(servlet);
|
public void | addServletMapping(ServletMapping servletMapping)
servletMappingList.add(servletMapping);
|
public void | addTaglib(Taglib taglib)
taglibList.add(taglib);
|
public void | characters(char[] ch, int start, int len)
// Feed this to the correct ContentHandler
Unmarshallable current = getCurrentUNode();
if (current != this) {
current.characters(ch, start, len);
return;
}
String text = new String(ch, start, len);
text = text.trim();
if (zeus_inDisplayName) {
if (this.displayName == null) {
this.displayName = text;
} else {
this.displayName = new StringBuffer(this.displayName).append(text).toString();
}
return;
}
if (zeus_inDescription) {
if (this.description == null) {
this.description = text;
} else {
this.description = new StringBuffer(this.description).append(text).toString();
}
return;
}
|
public void | comment(char[] ch, int start, int len)
// Currently no-op
|
public void | endCDATA()
// Currently no-op
|
public void | endDTD()
// Currently no-op
|
public void | endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
Unmarshallable current = getCurrentUNode();
if (current != this) {
current.endElement(namespaceURI, localName, qName);
return;
}
if (localName.equals("display-name")) {
this.zeus_inDisplayName = false;
return;
}
if (localName.equals("description")) {
this.zeus_inDescription = false;
return;
}
Unmarshallable parent = getCurrentUNode().getParentUNode();
if (parent != null) {
parent.setCurrentUNode(parent);
}
|
public void | endEntity(java.lang.String name)
// Currently no-op
|
public void | error(org.xml.sax.SAXParseException e)
if ((validate) && (!hasDTD)) {
throw new SAXException("Validation is turned on, but no DTD has been specified in the input XML document. Please supply a DTD through a DOCTYPE reference.");
}
if (errorHandler != null) {
errorHandler.error(e);
}
|
private java.lang.String | escapeAttributeValue(java.lang.String attributeValue)
String returnValue = attributeValue;
for (int i = 0; i < returnValue.length(); i++) {
char ch = returnValue.charAt(i);
if (ch == '"") {
returnValue = new StringBuffer()
.append(returnValue.substring(0, i))
.append(""")
.append(returnValue.substring(i+1))
.toString();
}
}
return returnValue;
|
private java.lang.String | escapeTextValue(java.lang.String textValue)
String returnValue = textValue;
for (int i = 0; i < returnValue.length(); i++) {
char ch = returnValue.charAt(i);
if (ch == '<") {
returnValue = new StringBuffer()
.append(returnValue.substring(0, i))
.append("<")
.append(returnValue.substring(i+1))
.toString();
} else if (ch == '>") {
returnValue = new StringBuffer()
.append(returnValue.substring(0, i))
.append(">")
.append(returnValue.substring(i+1))
.toString();
}
}
return returnValue;
|
public void | fatalError(org.xml.sax.SAXParseException e)
if ((validate) && (!hasDTD)) {
throw new SAXException("Validation is turned on, but no DTD has been specified in the input XML document. Please supply a DTD through a DOCTYPE reference.");
}
if (errorHandler != null) {
errorHandler.fatalError(e);
}
|
public java.util.List | getContextParamList()
return contextParamList;
|
public Unmarshallable | getCurrentUNode()
return zeus_currentUNode;
|
public java.lang.String | getDescription()
return description;
|
public java.lang.String | getDisplayName()
return displayName;
|
public Distributable | getDistributable()
return distributable;
|
public java.util.List | getEjbRefList()
return ejbRefList;
|
public java.util.List | getEnvEntryList()
return envEntryList;
|
public java.util.List | getErrorPageList()
return errorPageList;
|
public Icon | getIcon()
return icon;
|
public java.lang.String | getId()
return id;
|
public LoginConfig | getLoginConfig()
return loginConfig;
|
public java.util.List | getMimeMappingList()
return mimeMappingList;
|
public Unmarshallable | getParentUNode()
return zeus_parentUNode;
|
public java.util.List | getResourceRefList()
return resourceRefList;
|
public java.util.List | getSecurityConstraintList()
return securityConstraintList;
|
public java.util.List | getSecurityRoleList()
return securityRoleList;
|
public java.util.List | getServletList()
return servletList;
|
public java.util.List | getServletMappingList()
return servletMappingList;
|
public SessionConfig | getSessionConfig()
return sessionConfig;
|
public java.util.List | getTaglibList()
return taglibList;
|
public WelcomeFileList | getWelcomeFileList()
return welcomeFileList;
|
public void | marshal(java.io.File file)
// Delegate to the marshal(Writer) method
marshal(new FileWriter(file));
|
public void | marshal(java.io.OutputStream outputStream)
// Delegate to the marshal(Writer) method
marshal(new OutputStreamWriter(outputStream));
|
public void | marshal(java.io.Writer writer)
// Write out the XML declaration
writer.write("<?xml version=\"1.0\" ");
if (outputEncoding != null) {
writer.write("encoding=\"");
writer.write(outputEncoding);
writer.write("\"?>\n\n");
} else {
writer.write("encoding=\"UTF-8\"?>\n\n");
}
// Handle DOCTYPE declaration
writer.write(docTypeString);
writer.write("\n");
// Now start the recursive writing
writeXMLRepresentation(writer, "");
// Close up
writer.flush();
writer.close();
|
public void | removeContextParam(ContextParam contextParam)
contextParamList.remove(contextParam);
|
public void | removeEjbRef(EjbRef ejbRef)
ejbRefList.remove(ejbRef);
|
public void | removeEnvEntry(EnvEntry envEntry)
envEntryList.remove(envEntry);
|
public void | removeErrorPage(ErrorPage errorPage)
errorPageList.remove(errorPage);
|
public void | removeMimeMapping(MimeMapping mimeMapping)
mimeMappingList.remove(mimeMapping);
|
public void | removeResourceRef(ResourceRef resourceRef)
resourceRefList.remove(resourceRef);
|
public void | removeSecurityConstraint(SecurityConstraint securityConstraint)
securityConstraintList.remove(securityConstraint);
|
public void | removeSecurityRole(SecurityRole securityRole)
securityRoleList.remove(securityRole);
|
public void | removeServlet(Servlet servlet)
servletList.remove(servlet);
|
public void | removeServletMapping(ServletMapping servletMapping)
servletMappingList.remove(servletMapping);
|
public void | removeTaglib(Taglib taglib)
taglibList.remove(taglib);
|
public void | setContextParamList(java.util.List contextParamList)
this.contextParamList = contextParamList;
|
public void | setCurrentUNode(Unmarshallable currentUNode)
this.zeus_currentUNode = currentUNode;
|
public void | setDescription(java.lang.String description)
this.description = description;
zeus_DescriptionSet = true;
|
public void | setDisplayName(java.lang.String displayName)
this.displayName = displayName;
zeus_DisplayNameSet = true;
|
public void | setDistributable(Distributable distributable)
this.distributable = distributable;
|
public void | setDocType(java.lang.String name, java.lang.String publicID, java.lang.String systemID)
try {
startDTD(name, publicID, systemID);
} catch (SAXException neverHappens) { }
|
public void | setDocumentLocator(org.xml.sax.Locator locator)
// no-op
|
public void | setEjbRefList(java.util.List ejbRefList)
this.ejbRefList = ejbRefList;
|
public static void | setEntityResolver(org.xml.sax.EntityResolver resolver)
This sets a SAX EntityResolver for this unmarshalling process.
entityResolver = resolver;
|
public void | setEnvEntryList(java.util.List envEntryList)
this.envEntryList = envEntryList;
|
public static void | setErrorHandler(org.xml.sax.ErrorHandler handler)
This sets a SAX ErrorHandler for this unmarshalling process.
errorHandler = handler;
|
public void | setErrorPageList(java.util.List errorPageList)
this.errorPageList = errorPageList;
|
public void | setIcon(Icon icon)
this.icon = icon;
|
public void | setId(java.lang.String id)
this.id = id;
zeus_IdSet = true;
|
public void | setLoginConfig(LoginConfig loginConfig)
this.loginConfig = loginConfig;
|
public void | setMimeMappingList(java.util.List mimeMappingList)
this.mimeMappingList = mimeMappingList;
|
public void | setOutputEncoding(java.lang.String outputEncoding)
this.outputEncoding = outputEncoding;
|
public void | setParentUNode(Unmarshallable parentUNode)
this.zeus_parentUNode = parentUNode;
|
public void | setResourceRefList(java.util.List resourceRefList)
this.resourceRefList = resourceRefList;
|
public void | setSecurityConstraintList(java.util.List securityConstraintList)
this.securityConstraintList = securityConstraintList;
|
public void | setSecurityRoleList(java.util.List securityRoleList)
this.securityRoleList = securityRoleList;
|
public void | setServletList(java.util.List servletList)
this.servletList = servletList;
|
public void | setServletMappingList(java.util.List servletMappingList)
this.servletMappingList = servletMappingList;
|
public void | setSessionConfig(SessionConfig sessionConfig)
this.sessionConfig = sessionConfig;
|
public void | setTaglibList(java.util.List taglibList)
this.taglibList = taglibList;
|
public void | setValidating(boolean validate)
this.validate = validate;
|
public void | setWelcomeFileList(WelcomeFileList welcomeFileList)
this.welcomeFileList = welcomeFileList;
|
public void | startCDATA()
// Currently no-op
|
public void | startDTD(java.lang.String name, java.lang.String publicID, java.lang.String systemID)
if ((name == null) || (name.equals(""))) {
docTypeString = "";
return;
}
hasDTD = true;
StringBuffer docTypeSB = new StringBuffer();
boolean hasPublic = false;
docTypeSB.append("<!DOCTYPE ")
.append(name);
if ((publicID != null) && (!publicID.equals(""))) {
docTypeSB.append(" PUBLIC \"")
.append(publicID)
.append("\"");
hasPublic = true;
}
if ((systemID != null) && (!systemID.equals(""))) {
if (!hasPublic) {
docTypeSB.append(" SYSTEM");
}
docTypeSB.append(" \"")
.append(systemID)
.append("\"");
}
docTypeSB.append(">");
docTypeString = docTypeSB.toString();
|
public void | startDocument()
// no-op
|
public void | startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
// Feed this to the correct ContentHandler
Unmarshallable current = getCurrentUNode();
if (current != this) {
current.startElement(namespaceURI, localName, qName, atts);
return;
}
// See if we handle, or we delegate
if ((localName.equals("web-app")) && (!zeus_thisNodeHandled)) {
// Handle ourselves
for (int i=0, len=atts.getLength(); i<len; i++) {
String attName= atts.getLocalName(i);
String attValue = atts.getValue(i);
if (attName.equals("id")) {
setId(attValue);
}
}
zeus_thisNodeHandled = true;
return;
} else {
// Delegate handling
if (localName.equals("icon")) {
IconImpl icon = new IconImpl();
current = getCurrentUNode();
icon.setParentUNode(current);
icon.setCurrentUNode(icon);
this.setCurrentUNode(icon);
icon.startElement(namespaceURI, localName, qName, atts);
// Add this value in
this.icon = icon;
return;
}
if (localName.equals("display-name")) {
this.zeus_inDisplayName = true;
return;
}
if (localName.equals("description")) {
this.zeus_inDescription = true;
return;
}
if (localName.equals("distributable")) {
DistributableImpl distributable = new DistributableImpl();
current = getCurrentUNode();
distributable.setParentUNode(current);
distributable.setCurrentUNode(distributable);
this.setCurrentUNode(distributable);
distributable.startElement(namespaceURI, localName, qName, atts);
// Add this value in
this.distributable = distributable;
return;
}
if (localName.equals("context-param")) {
ContextParamImpl contextParam = new ContextParamImpl();
current = getCurrentUNode();
contextParam.setParentUNode(current);
contextParam.setCurrentUNode(contextParam);
this.setCurrentUNode(contextParam);
contextParam.startElement(namespaceURI, localName, qName, atts);
// Add this value in
contextParamList.add(contextParam);
return;
}
if (localName.equals("servlet")) {
ServletImpl servlet = new ServletImpl();
current = getCurrentUNode();
servlet.setParentUNode(current);
servlet.setCurrentUNode(servlet);
this.setCurrentUNode(servlet);
servlet.startElement(namespaceURI, localName, qName, atts);
// Add this value in
servletList.add(servlet);
return;
}
if (localName.equals("servlet-mapping")) {
ServletMappingImpl servletMapping = new ServletMappingImpl();
current = getCurrentUNode();
servletMapping.setParentUNode(current);
servletMapping.setCurrentUNode(servletMapping);
this.setCurrentUNode(servletMapping);
servletMapping.startElement(namespaceURI, localName, qName, atts);
// Add this value in
servletMappingList.add(servletMapping);
return;
}
if (localName.equals("session-config")) {
SessionConfigImpl sessionConfig = new SessionConfigImpl();
current = getCurrentUNode();
sessionConfig.setParentUNode(current);
sessionConfig.setCurrentUNode(sessionConfig);
this.setCurrentUNode(sessionConfig);
sessionConfig.startElement(namespaceURI, localName, qName, atts);
// Add this value in
this.sessionConfig = sessionConfig;
return;
}
if (localName.equals("mime-mapping")) {
MimeMappingImpl mimeMapping = new MimeMappingImpl();
current = getCurrentUNode();
mimeMapping.setParentUNode(current);
mimeMapping.setCurrentUNode(mimeMapping);
this.setCurrentUNode(mimeMapping);
mimeMapping.startElement(namespaceURI, localName, qName, atts);
// Add this value in
mimeMappingList.add(mimeMapping);
return;
}
if (localName.equals("welcome-file-list")) {
WelcomeFileListImpl welcomeFileList = new WelcomeFileListImpl();
current = getCurrentUNode();
welcomeFileList.setParentUNode(current);
welcomeFileList.setCurrentUNode(welcomeFileList);
this.setCurrentUNode(welcomeFileList);
welcomeFileList.startElement(namespaceURI, localName, qName, atts);
// Add this value in
this.welcomeFileList = welcomeFileList;
return;
}
if (localName.equals("error-page")) {
ErrorPageImpl errorPage = new ErrorPageImpl();
current = getCurrentUNode();
errorPage.setParentUNode(current);
errorPage.setCurrentUNode(errorPage);
this.setCurrentUNode(errorPage);
errorPage.startElement(namespaceURI, localName, qName, atts);
// Add this value in
errorPageList.add(errorPage);
return;
}
if (localName.equals("taglib")) {
TaglibImpl taglib = new TaglibImpl();
current = getCurrentUNode();
taglib.setParentUNode(current);
taglib.setCurrentUNode(taglib);
this.setCurrentUNode(taglib);
taglib.startElement(namespaceURI, localName, qName, atts);
// Add this value in
taglibList.add(taglib);
return;
}
if (localName.equals("resource-ref")) {
ResourceRefImpl resourceRef = new ResourceRefImpl();
current = getCurrentUNode();
resourceRef.setParentUNode(current);
resourceRef.setCurrentUNode(resourceRef);
this.setCurrentUNode(resourceRef);
resourceRef.startElement(namespaceURI, localName, qName, atts);
// Add this value in
resourceRefList.add(resourceRef);
return;
}
if (localName.equals("security-constraint")) {
SecurityConstraintImpl securityConstraint = new SecurityConstraintImpl();
current = getCurrentUNode();
securityConstraint.setParentUNode(current);
securityConstraint.setCurrentUNode(securityConstraint);
this.setCurrentUNode(securityConstraint);
securityConstraint.startElement(namespaceURI, localName, qName, atts);
// Add this value in
securityConstraintList.add(securityConstraint);
return;
}
if (localName.equals("login-config")) {
LoginConfigImpl loginConfig = new LoginConfigImpl();
current = getCurrentUNode();
loginConfig.setParentUNode(current);
loginConfig.setCurrentUNode(loginConfig);
this.setCurrentUNode(loginConfig);
loginConfig.startElement(namespaceURI, localName, qName, atts);
// Add this value in
this.loginConfig = loginConfig;
return;
}
if (localName.equals("security-role")) {
SecurityRoleImpl securityRole = new SecurityRoleImpl();
current = getCurrentUNode();
securityRole.setParentUNode(current);
securityRole.setCurrentUNode(securityRole);
this.setCurrentUNode(securityRole);
securityRole.startElement(namespaceURI, localName, qName, atts);
// Add this value in
securityRoleList.add(securityRole);
return;
}
if (localName.equals("env-entry")) {
EnvEntryImpl envEntry = new EnvEntryImpl();
current = getCurrentUNode();
envEntry.setParentUNode(current);
envEntry.setCurrentUNode(envEntry);
this.setCurrentUNode(envEntry);
envEntry.startElement(namespaceURI, localName, qName, atts);
// Add this value in
envEntryList.add(envEntry);
return;
}
if (localName.equals("ejb-ref")) {
EjbRefImpl ejbRef = new EjbRefImpl();
current = getCurrentUNode();
ejbRef.setParentUNode(current);
ejbRef.setCurrentUNode(ejbRef);
this.setCurrentUNode(ejbRef);
ejbRef.startElement(namespaceURI, localName, qName, atts);
// Add this value in
ejbRefList.add(ejbRef);
return;
}
}
|
public void | startEntity(java.lang.String name)
// Currently no-op
|
public void | startPrefixMapping(java.lang.String prefix, java.lang.String uri)
namespaceMappings.put(prefix, uri);
|
public static WebApp | unmarshal(java.io.File file)
// Delegate to the unmarshal(Reader) method
return unmarshal(new FileReader(file));
|
public static WebApp | unmarshal(java.io.File file, boolean validate)
// Delegate to the unmarshal(Reader) method
return unmarshal(new FileReader(file), validate);
|
public static WebApp | unmarshal(java.io.InputStream inputStream)
// Delegate to the unmarshal(Reader) method
return unmarshal(new InputStreamReader(inputStream));
|
public static WebApp | unmarshal(java.io.InputStream inputStream, boolean validate)
// Delegate to the unmarshal(Reader) method
return unmarshal(new InputStreamReader(inputStream), validate);
|
public static WebApp | unmarshal(java.io.Reader reader)
// Delegate with default validation value
return unmarshal(reader, false);
|
public static WebApp | unmarshal(java.io.Reader reader, boolean validate)
WebAppImpl webApp = new WebAppImpl();
webApp.setValidating(validate);
webApp.setCurrentUNode(webApp);
webApp.setParentUNode(null);
// Load the XML parser
XMLReader parser = null;
String parserClass = System.getProperty("org.xml.sax.driver",
"org.apache.xerces.parsers.SAXParser");
try {
parser = XMLReaderFactory.createXMLReader(parserClass);
// Set entity resolver, if needed
if (entityResolver != null) {
parser.setEntityResolver(entityResolver);
}
// Set error handler
parser.setErrorHandler(webApp);
// Register lexical handler
parser.setProperty("http://xml.org/sax/properties/lexical-handler", webApp);
// Register content handler
parser.setContentHandler(webApp);
} catch (SAXException e) {
throw new IOException("Could not load XML parser: " +
e.getMessage());
}
InputSource inputSource = new InputSource(reader);
try {
parser.setFeature("http://xml.org/sax/features/validation", new Boolean(validate).booleanValue());
parser.setFeature("http://xml.org/sax/features/namespaces", true);
parser.setFeature("http://xml.org/sax/features/namespace-prefixes", false);
parser.parse(inputSource);
} catch (SAXException e) {
throw new IOException("Error parsing XML document: " +
e.getMessage());
}
// Return the resultant object
return webApp;
|
public void | warning(org.xml.sax.SAXParseException e)
if (errorHandler != null) {
errorHandler.warning(e);
}
|
protected void | writeXMLRepresentation(java.io.Writer writer, java.lang.String indent)
writer.write(indent);
writer.write("<web-app");
// Handle namespace mappings (if needed)
for (Iterator i = namespaceMappings.keySet().iterator(); i.hasNext(); ) {
String prefix = (String)i.next();
String uri = (String)namespaceMappings.get(prefix);
writer.write(" xmlns");
if (!prefix.trim().equals("")) {
writer.write(":");
writer.write(prefix);
}
writer.write("=\"");
writer.write(uri);
writer.write("\"\n ");
}
// Handle attributes (if needed)
if (zeus_IdSet) {
writer.write(" id=\"");
writer.write(escapeAttributeValue(id));
writer.write("\"");
}
writer.write(">");
writer.write("\n");
// Handle child elements
if (icon != null) {
((IconImpl)icon).writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
if (displayName != null) {
writer.write(new StringBuffer(indent).append(" ").toString());
writer.write("<display-name>");
writer.write(this.displayName);
writer.write("</display-name>\n");
}
if (description != null) {
writer.write(new StringBuffer(indent).append(" ").toString());
writer.write("<description>");
writer.write(this.description);
writer.write("</description>\n");
}
if (distributable != null) {
((DistributableImpl)distributable).writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=contextParamList.iterator(); i.hasNext(); ) {
ContextParamImpl contextParam = (ContextParamImpl)i.next();
contextParam.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=servletList.iterator(); i.hasNext(); ) {
ServletImpl servlet = (ServletImpl)i.next();
servlet.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=servletMappingList.iterator(); i.hasNext(); ) {
ServletMappingImpl servletMapping = (ServletMappingImpl)i.next();
servletMapping.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
if (sessionConfig != null) {
((SessionConfigImpl)sessionConfig).writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=mimeMappingList.iterator(); i.hasNext(); ) {
MimeMappingImpl mimeMapping = (MimeMappingImpl)i.next();
mimeMapping.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
if (welcomeFileList != null) {
((WelcomeFileListImpl)welcomeFileList).writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=errorPageList.iterator(); i.hasNext(); ) {
ErrorPageImpl errorPage = (ErrorPageImpl)i.next();
errorPage.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=taglibList.iterator(); i.hasNext(); ) {
TaglibImpl taglib = (TaglibImpl)i.next();
taglib.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=resourceRefList.iterator(); i.hasNext(); ) {
ResourceRefImpl resourceRef = (ResourceRefImpl)i.next();
resourceRef.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=securityConstraintList.iterator(); i.hasNext(); ) {
SecurityConstraintImpl securityConstraint = (SecurityConstraintImpl)i.next();
securityConstraint.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
if (loginConfig != null) {
((LoginConfigImpl)loginConfig).writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=securityRoleList.iterator(); i.hasNext(); ) {
SecurityRoleImpl securityRole = (SecurityRoleImpl)i.next();
securityRole.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=envEntryList.iterator(); i.hasNext(); ) {
EnvEntryImpl envEntry = (EnvEntryImpl)i.next();
envEntry.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
for (Iterator i=ejbRefList.iterator(); i.hasNext(); ) {
EjbRefImpl ejbRef = (EjbRefImpl)i.next();
ejbRef.writeXMLRepresentation(writer,
new StringBuffer(indent).append(" ").toString());
}
writer.write(indent);
writer.write("</web-app>\n");
|