Top Description Fields Constructors Methods
org.apache.catalina.manager

public Class StatusManagerServlet

extends HttpServlet
implements NotificationListener
Class Inheritance
All Implemented Interfaces
javax.management.NotificationListener, java.util.EventListener
Imports
java.io.IOException, .PrintWriter, java.net.InetAddress, .UnknownHostException, java.util.ArrayList, .Collections, .Iterator, .List, .Set, javax.management.MBeanServer, .MBeanServerNotification, .Notification, .NotificationListener, .ObjectInstance, .ObjectName, jakarta.servlet.ServletException, jakarta.servlet.http.HttpServlet, .HttpServletRequest, .HttpServletResponse, org.apache.catalina.util.ServerInfo, org.apache.tomcat.util.modeler.Registry, org.apache.tomcat.util.res.StringManager

This servlet will display a complete status of the HTTP/1.1 connector.
Author
Remy Maucherat

Field Summary

Modifier and TypeField and Description
protected final List<ObjectName>
globalRequestProcessors

Vector of global request processors object names.

protected MBeanServer
mBeanServer

MBean server.

protected final List<ObjectName>
requestProcessors

Vector of request processors object names.

private static final long
protected static final StringManager
sm

The string manager for this package.

protected final List<ObjectName>
threadPools

Vector of thread pools object names.

Inherited from jakarta.servlet.http.HttpServlet:
LEGACY_DO_HEAD

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
doGet(HttpServletRequest
The servlet request we are processing
request
,
HttpServletResponse
The servlet response we are creating
response
)

Overrides jakarta.servlet.http.HttpServlet.doGet.

Process a GET request for the specified resource.

public void
handleNotification(Notification
The notification.
notification
,
Object
An opaque object which helps the listener to associate information regarding the MBean emitter. This object is passed to the addNotificationListener call and resent, without modification, to the listener.
handback
)

Implements javax.management.NotificationListener.handleNotification.

Invoked when a JMX notification occurs.

public void
init()

Overrides jakarta.servlet.GenericServlet.init.

Initialize this servlet.

Inherited from jakarta.servlet.http.HttpServlet:
doDeletedoHeaddoOptionsdoPostdoPutdoTracegetLastModifiedinitserviceservice

Field Detail

globalRequestProcessorsback to summary
protected final List<ObjectName> globalRequestProcessors

Vector of global request processors object names.

mBeanServerback to summary
protected MBeanServer mBeanServer

MBean server.

requestProcessorsback to summary
protected final List<ObjectName> requestProcessors

Vector of request processors object names.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.servlet.http.HttpServlet.serialVersionUID.

smback to summary
protected static final StringManager sm

The string manager for this package.

threadPoolsback to summary
protected final List<ObjectName> threadPools

Vector of thread pools object names.

Constructor Detail

StatusManagerServletback to summary
public StatusManagerServlet()

Method Detail

destroyback to summary
public void destroy()

Overrides jakarta.servlet.GenericServlet.destroy.

Implements jakarta.servlet.Servlet.destroy.

Finalize this servlet.

Annotations
@Override
doGetback to summary
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException

Overrides jakarta.servlet.http.HttpServlet.doGet.

Process a GET request for the specified resource.

Parameters
request:HttpServletRequest

The servlet request we are processing

response:HttpServletResponse

The servlet response we are creating

Annotations
@Override
Exceptions
IOException:
if an input/output error occurs
ServletException:
if a servlet-specified error occurs
handleNotificationback to summary
public void handleNotification(Notification notification, Object handback)

Implements javax.management.NotificationListener.handleNotification.

Doc from javax.management.NotificationListener.handleNotification.

Invoked when a JMX notification occurs. The implementation of this method should return as soon as possible, to avoid blocking its notification broadcaster.

Parameters
notification:Notification

The notification.

handback:Object

An opaque object which helps the listener to associate information regarding the MBean emitter. This object is passed to the addNotificationListener call and resent, without modification, to the listener.

Annotations
@Override
initback to summary
public void init() throws ServletException

Overrides jakarta.servlet.GenericServlet.init.

Initialize this servlet.

Annotations
@Override
Exceptions
ServletException:

Doc from jakarta.servlet.GenericServlet.init.

if an exception occurs that interrupts the servlet's normal operation