org.utgenome.shell.tomcat
クラス TomcatServer

java.lang.Object
  上位を拡張 org.utgenome.shell.tomcat.TomcatServer

public class TomcatServer
extends Object

Embedded Tomcat Server

作成者:
leo

入れ子のクラスの概要
static class TomcatServer.Opt
           
 
コンストラクタの概要
TomcatServer(int port)
          Creates a TomcatServer instance with the specified port
TomcatServer(TomcatServerConfiguration configuration)
          Configures the tomcat server
 
メソッドの概要
 void addContext(String contextPath, String docBase)
           
 File findDir(String resourceName)
           
static void main(String[] args)
          entry point for running Tomcat from CUI
 void registerWAR(String contextPath, String pathToTheWarFile)
           
 void setConfiguration(TomcatServerConfiguration configuration)
           
 void start()
          Starts a Tomcat server
 void stop()
          Stops the tomcat server
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TomcatServer

public TomcatServer(int port)
             throws org.xerial.core.XerialException
Creates a TomcatServer instance with the specified port

パラメータ:
port - port used by the tomcat
例外:
org.xerial.core.XerialException

TomcatServer

public TomcatServer(TomcatServerConfiguration configuration)
             throws org.xerial.core.XerialException
Configures the tomcat server

パラメータ:
configuration - configuration parameters
例外:
org.xerial.core.XerialException
メソッドの詳細

main

public static void main(String[] args)
entry point for running Tomcat from CUI

パラメータ:
args -

setConfiguration

public void setConfiguration(TomcatServerConfiguration configuration)

start

public void start()
           throws org.xerial.core.XerialException
Starts a Tomcat server

例外:
TomcatException - when failed to launch tomcat
org.xerial.core.XerialException

registerWAR

public void registerWAR(String contextPath,
                        String pathToTheWarFile)
                 throws org.xerial.core.XerialException
例外:
org.xerial.core.XerialException

addContext

public void addContext(String contextPath,
                       String docBase)
                throws org.xerial.core.XerialException
例外:
org.xerial.core.XerialException

stop

public void stop()
          throws org.xerial.core.XerialException
Stops the tomcat server

例外:
TomcatException - failed to stop tomcat
org.xerial.core.XerialException

findDir

public File findDir(String resourceName)


Copyright © 2007-2011 utgenome.org. All Rights Reserved.