blob: 0913c3aa452d8be73794c199cdb327214c4c3629 [file] [log] [blame]
package org.eclipse.jst.server.tomcat.core.internal.xml.server32;
/**********************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved.   This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
 *
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
import org.eclipse.jst.server.tomcat.core.internal.xml.*;
/**
*
*/
public class ContextManager extends XMLElement {
public ContextManager() { }
public Connector getConnector(int index) {
return (Connector) findElement("Connector", index);
}
public int getConnectorCount() {
return sizeOfElement("Connector");
}
public Context getContext(int index) {
return (Context) findElement("Context", index);
}
public int getContextCount() {
return sizeOfElement("Context");
}
public int getContextInterceptorCount() {
return sizeOfElement("ContextInterceptor");
}
public String getDebug() {
return getAttributeValue("debug");
}
public String getHome() {
return getAttributeValue("home");
}
public int getRequestInterceptorCount() {
return sizeOfElement("RequestInterceptor");
}
public String getShowDebugInfo() {
return getAttributeValue("showDebugInfo");
}
public String getWorkDir() {
return getAttributeValue("workDir");
}
public void setDebug(String debug) {
setAttributeValue("debug", debug);
}
public void setHome(String home) {
setAttributeValue("home", home);
}
public void setShowDebugInfo(String showDebugInfo) {
setAttributeValue("showDebugInfo", showDebugInfo);
}
public void setWorkDir(String workDir) {
setAttributeValue("workDir", workDir);
}
}