org.mortbay.servlet

Class AdminServlet

Implemented Interfaces:
java.io.Serializable, Servlet, ServletConfig

public class AdminServlet
extends HttpServlet

Jetty Administration Servlet. This is a minimal start to a administration servlet that allows start/stop of server components and control of debug parameters.
Version:
$Id: AdminServlet.java,v 1.13 2005/08/13 00:01:28 gregwilkins Exp $
Author:
Greg Wilkins (gregw)
See Also:
Serialized Form

Method Summary

void
doGet(HttpServletRequest request, HttpServletResponse response)
void
doPost(HttpServletRequest request, HttpServletResponse response)
String
getServletInfo()
Returns information about the servlet, such as author, version, and copyright.
void
init(ServletConfig config)
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.

Methods inherited from class javax.servlet.http.HttpServlet

doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service

Methods inherited from class javax.servlet.GenericServlet

destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log, service

Method Details

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
            throws ServletException,
                   IOException
Overrides:
doGet in interface HttpServlet

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
Overrides:
doPost in interface HttpServlet

getServletInfo

public String getServletInfo()
Specified by:
getServletInfo in interface Servlet
Overrides:
getServletInfo in interface GenericServlet
Returns:
String information about this servlet, by default an empty string

init

public void init(ServletConfig config)
            throws ServletException
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. See Servlet.init(ServletConfig).

This implementation stores the ServletConfig object it receives from the servlet container for later use. When overriding this form of the method, call super.init(config).

Specified by:
init in interface Servlet
Overrides:
init in interface GenericServlet
Parameters:
config - the ServletConfig object that contains configutation information for this servlet
Throws:
ServletException - if an exception occurs that interrupts the servlet's normal operation

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.