org.apache.tomcat.modules.config
Class HookSetter

java.lang.Object
  extended byorg.apache.tomcat.core.BaseInterceptor
      extended byorg.apache.tomcat.modules.config.HookSetter

public class HookSetter
extends BaseInterceptor

Keep hook chains to minimal, using introspection.

Author:
Costin Manolache

Field Summary
 
Fields inherited from class org.apache.tomcat.core.BaseInterceptor
cm, ct, ctx, debug, DECLINED, loghelper, OK
 
Constructor Summary
HookSetter()
           
 
Method Summary
 void addInterceptor(ContextManager cm, Context ctx, BaseInterceptor module)
          When this module is added, it'll automatically load a configuration file and add all global modules.
 
Methods inherited from class org.apache.tomcat.core.BaseInterceptor
addContainer, addContext, addHandler, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextInit, contextMap, contextShutdown, contextState, copyContext, engineInit, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getInfo, getLog, getNote, getNote, handleError, log, log, log, log, postInitCheck, postReadRequest, postRequest, postService, postServletDestroy, postServletInit, preInitCheck, preService, preServletDestroy, preServletInit, registerHooks, reload, removeContainer, removeContext, removeHandler, removeInterceptor, requestMap, sessionState, setContext, setContextManager, setDebug, setInfo, setNote, setNote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HookSetter

public HookSetter()
Method Detail

addInterceptor

public void addInterceptor(ContextManager cm,
                           Context ctx,
                           BaseInterceptor module)
                    throws TomcatException
When this module is added, it'll automatically load a configuration file and add all global modules.

Overrides:
addInterceptor in class BaseInterceptor
Parameters:
cm - the server
ctx - not null if this is a local interceptor
module - the new added interceptor
Throws:
TomcatException - The module will not be added if any module throws an exception.


Copyright ? 2001 Apache Software Foundation. All Rights Reserved.