org.apache.catalina.servlets
クラス ManagerServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.apache.catalina.servlets.ManagerServlet
すべての実装インタフェース:
ContainerServlet, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
直系の既知のサブクラス:
HTMLManagerServlet

public class ManagerServlet
extends javax.servlet.http.HttpServlet
implements ContainerServlet

Servlet that enables remote management of the web applications installed within the same virtual host as this web application is. Normally, this functionality will be protected by a security constraint in the web application deployment descriptor. However, this requirement can be relaxed during testing.

This servlet examines the value returned by getPathInfo() and related query parameters to determine what action is being requested. The following actions and parameters (starting after the servlet path) are supported:

Use path=/ for the ROOT context.

The syntax of the URL for a web application archive must conform to one of the following patterns to be successfully deployed:

NOTE - Attempting to reload or remove the application containing this servlet itself will not succeed. Therefore, this servlet should generally be deployed as a separate web application within the virtual host to be managed.

NOTE - For security reasons, this application will not operate when accessed via the invoker servlet. You must explicitly map this servlet with a servlet mapping, and you will always want to protect it with appropriate security constraints as well.

The following servlet initialization parameters are recognized:

バージョン:
$Revision: 1.9 $ $Date: 2001/09/15 23:31:30 $
作成者:
Craig R. McClanahan
関連項目:
直列化された形式

フィールドの概要
protected  Context context
          The Context container associated with our web application.
protected  int debug
          The debugging detail level for this servlet.
protected  Deployer deployer
          The Deployer container that contains our own web application's Context, along with the associated Contexts for web applications that we are managing.
protected static StringManager sm
          The string manager for this package.
protected  Wrapper wrapper
          The Wrapper container associated with this servlet.
 
コンストラクタの概要
ManagerServlet()
           
 
メソッドの概要
 void destroy()
          Finalize this servlet.
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process a GET request for the specified resource.
 Wrapper getWrapper()
          Return the Wrapper with which we are associated.
 void init()
          Initialize this servlet.
protected  void install(java.io.PrintWriter writer, java.lang.String path, java.lang.String war)
          Install an application for the specified path from the specified web application archive.
protected  void list(java.io.PrintWriter writer)
          Render a list of the currently active Contexts in our virtual host.
protected  void reload(java.io.PrintWriter writer, java.lang.String path)
          Reload the web application at the specified context path.
protected  void remove(java.io.PrintWriter writer, java.lang.String path)
          Remove the web application at the specified context path.
protected  void sessions(java.io.PrintWriter writer, java.lang.String path)
          Session information for the web application at the specified context path.
 void setWrapper(Wrapper wrapper)
          Set the Wrapper with which we are associated.
protected  void start(java.io.PrintWriter writer, java.lang.String path)
          Start the web application at the specified context path.
protected  void stop(java.io.PrintWriter writer, java.lang.String path)
          Stop the web application at the specified context path.
 
クラス javax.servlet.http.HttpServlet から継承したメソッド
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
クラス javax.servlet.GenericServlet から継承したメソッド
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

context

protected Context context
The Context container associated with our web application.

debug

protected int debug
The debugging detail level for this servlet.

deployer

protected Deployer deployer
The Deployer container that contains our own web application's Context, along with the associated Contexts for web applications that we are managing.

sm

protected static StringManager sm
The string manager for this package.

wrapper

protected Wrapper wrapper
The Wrapper container associated with this servlet.
コンストラクタの詳細

ManagerServlet

public ManagerServlet()
メソッドの詳細

getWrapper

public Wrapper getWrapper()
Return the Wrapper with which we are associated.
定義:
インタフェース ContainerServlet 内の getWrapper

setWrapper

public void setWrapper(Wrapper wrapper)
Set the Wrapper with which we are associated.
定義:
インタフェース ContainerServlet 内の setWrapper
パラメータ:
wrapper - The new wrapper

destroy

public void destroy()
Finalize this servlet.
オーバーライド:
クラス javax.servlet.GenericServlet 内の destroy

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Process a GET request for the specified resource.
オーバーライド:
クラス javax.servlet.http.HttpServlet 内の doGet
パラメータ:
request - The servlet request we are processing
response - The servlet response we are creating
例外:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet-specified error occurs

init

public void init()
          throws javax.servlet.ServletException
Initialize this servlet.
オーバーライド:
クラス javax.servlet.GenericServlet 内の init

install

protected void install(java.io.PrintWriter writer,
                       java.lang.String path,
                       java.lang.String war)
Install an application for the specified path from the specified web application archive.
パラメータ:
writer - Writer to render results to
path - Context path of the application to be installed
war - URL of the web application archive to be installed

list

protected void list(java.io.PrintWriter writer)
Render a list of the currently active Contexts in our virtual host.
パラメータ:
writer - Writer to render to

reload

protected void reload(java.io.PrintWriter writer,
                      java.lang.String path)
Reload the web application at the specified context path.
パラメータ:
writer - Writer to render to
path - Context path of the application to be restarted

remove

protected void remove(java.io.PrintWriter writer,
                      java.lang.String path)
Remove the web application at the specified context path.
パラメータ:
writer - Writer to render to
path - Context path of the application to be removed

sessions

protected void sessions(java.io.PrintWriter writer,
                        java.lang.String path)
Session information for the web application at the specified context path. Displays a profile of session MaxInactiveInterval timeouts listing number of sessions for each 10 minute timeout interval up to 10 hours.
パラメータ:
writer - Writer to render to
path - Context path of the application to list session information for

start

protected void start(java.io.PrintWriter writer,
                     java.lang.String path)
Start the web application at the specified context path.
パラメータ:
writer - Writer to render to
path - Context path of the application to be started

stop

protected void stop(java.io.PrintWriter writer,
                    java.lang.String path)
Stop the web application at the specified context path.
パラメータ:
writer - Writer to render to
path - Context path of the application to be stopped


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.