org.apache.catalina.stratup.Constants
접근에 필요한 패키지나 내부에서 사용되는 상수값들이 저장되어있다. 웹에 쓰이는 주소등 서버 config파일 건들고 싶을때는 여기를 참조하면 된다.
org.apache.catalina.startup.Catalina
시작과 멈춤을 관리하는 쉘이 담겨있는 Class
@deprecated
public void setConfig(String file){
configFile =file;
}
public void setConfigFile(String file){
configFile =file;
}
public String getConfigFile(){
return configFile;
}
public void setUseShutdownHook(boolean useShutdownHook){
this.useShutdownHook = useShutdownHook;
}
public boolean getUseShutdownHook(){
return useShutdownHook;
}
Set the shared extensions class loader
public void setParentClassLoader(ClassLoader parentClassLoader) {
this.parentClassLoader = parentClassLoader;
}
public ClassLoader getParentClassLoader(){
if (parentClassLoader != null){
return (parentClassLoader);
}
return ClassLoader.getSystemClassLoader();
}
public void setServer(Server server){
this.server = server;
}
public Server getServer(){
return server;
}
prcoessing을 계속해야 한다면 return true 아니면 false;
protected boolean arguments(String args[]) {
boolean isConfig = false;
if (args.length < 1) {
usage();
return (false);
}
for (int i = 0; i < args.length; i++) {
if (isConfig) {
configFile = args[i];
isConfig = false;
} else if (args[i].equals("-config")) {
isConfig = true;
} else if (args[i].equals("-nonaming")) {
setUseNaming( false );
} else if (args[i].equals("-help")) {
usage();
return (false);
} else if (args[i].equals("start")) {
starting = true;
stopping = false;
} else if (args[i].equals("stop")) {
starting = false;
stopping = true;
} else {
usage();
return (false);
}
}
return (true);
}
return a File object representing our configuration file.
protected File configFile() {
File file = new File(configFile);
if (!file.isAbsolute())
file = new File(System.getProperty("catalina.base"), configFile);
return (file);
}
create the Apache Digetster File will be using for startup
protected Digester createStartDigester()
create the Apache Digetster File will be using for shutdown
protected Digester createStopDigester()
socket, inputstream,outputstream, 등 닫는다.
stopServer();
Start a new server instance 새로 시작
public void load()
'오픈소스 분석' 카테고리의 다른 글
Eclipse기반 Tomcat 소스 분석 (0) | 2015.04.09 |
---|