org.apache.tomcat.modules.generators
Class StaticInterceptor

java.lang.Object
  |
  +--org.apache.tomcat.core.BaseInterceptor
        |
        +--org.apache.tomcat.modules.generators.StaticInterceptor

public class StaticInterceptor
extends BaseInterceptor

Handler for static files.

Author:
costin@dnt.ro

Fields inherited from class org.apache.tomcat.core.BaseInterceptor
cm, ct, ctx, debug, DECLINED, loghelper, OK
 
Constructor Summary
StaticInterceptor()
           
 
Method Summary
 void contextInit(Context ctx)
          Notify when a context is initialized.
 void engineInit(ContextManager cm)
          Initialize the module.
 boolean getListings()
           
 int requestMap(Request req)
          Handle mappings inside a context.
 void setExtraSafety(boolean safe)
          Request extra safety checks.
 void setListings(boolean listings)
           
 void setUseAcceptLanguage(boolean use)
           
 void setUseCharset(java.lang.String charset)
           
 
Methods inherited from class org.apache.tomcat.core.BaseInterceptor
addContainer, addContext, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextMap, contextShutdown, contextState, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getInfo, getLog, getNote, getNote, handleError, log, log, log, log, postReadRequest, postRequest, postService, postServletDestroy, postServletInit, preService, preServletDestroy, preServletInit, registerHooks, reload, removeContainer, removeContext, removeHandler, removeInterceptor, 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

StaticInterceptor

public StaticInterceptor()
Method Detail

getListings

public boolean getListings()

setListings

public void setListings(boolean listings)

setUseAcceptLanguage

public void setUseAcceptLanguage(boolean use)

setUseCharset

public void setUseCharset(java.lang.String charset)

setExtraSafety

public void setExtraSafety(boolean safe)
Request extra safety checks. Defaults to false since it also prevents certain include/forwards from working.

engineInit

public void engineInit(ContextManager cm)
                throws TomcatException
Description copied from class: BaseInterceptor
Initialize the module.
Overrides:
engineInit in class BaseInterceptor
Following copied from class: org.apache.tomcat.core.BaseInterceptor
Throws:
TomcatException - The module will not be added if any exception is thrown by engineInit.

contextInit

public void contextInit(Context ctx)
                 throws TomcatException
Description copied from class: BaseInterceptor
Notify when a context is initialized. The first interceptor in the chain for contextInit must read web.xml and set the context. When this method is called you can expect the context to be filled in with all the informations from web.xml.
Overrides:
contextInit in class BaseInterceptor
Following copied from class: org.apache.tomcat.core.BaseInterceptor
Throws:
If - the interceptor throws exception the context will not be initialized ( state==NEW or ADDED or DISABLED ).

requestMap

public int requestMap(Request req)
Description copied from class: BaseInterceptor
Handle mappings inside a context. You are required to respect the mappings in web.xml.
Overrides:
requestMap in class BaseInterceptor


Copyright © 2001 Apache Software Foundation. All Rights Reserved.