HandlerManager (Tomcat API Documentation)
Keywords: org.apache.tomcat.util.handler.HandlerManager class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tomcat.util.handler
Class HandlerManager

    java.lang.Object
      org.apache.tomcat.util.handler.HandlerManager

public class HandlerManager
extends java.lang.Object

Hooks support. Hooks implement a chain-of-command pattern, and are commonly used in most web servers as a mechanism of extensibility. The HandlerManager class will provide support for registering and maintaining a list of modules implementing each hook. Each hook will have a name and an id. Name-based operations are slower, it is recomended you use them only in non-critical code. The name-id association is handled by NoteManager.

Constructor Summary
`HandlerManager()`

Method Summary
`void` | `addHandler(java.lang.String name, TcHandler hook)` Add a new handler.
`TcHandler[]` | `getHandlers(int hookId)`
`TcHandler[]` | `getHandlers(java.lang.String name)`
`java.util.Hashtable` | `getHookMap()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### HandlerManager

    public HandlerManager()

Method Detail

### addHandler

    public void addHandler(java.lang.String name,
                           TcHandler hook)

  Add a new handler.

### getHandlers

    public TcHandler[] getHandlers(int hookId)

### getHandlers

    public TcHandler[] getHandlers(java.lang.String name)

### getHookMap

    public java.util.Hashtable getHookMap()

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.