|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.tomcat.core.BaseInterceptor
org.apache.tomcat.modules.generators.StaticInterceptor
Handler for static files.
| Field Summary |
| 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 |
setStrict23Welcome(boolean support)
Support the 2.3 behavior of allowing mapped servlets as welcome files. |
void |
setUseAcceptLanguage(boolean use)
|
void |
setUseCharset(java.lang.String charset)
|
void |
setUseInternal(boolean internal)
Do we do an internal redirect? |
| Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addContext, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextMap, contextShutdown, contextState, copyContext, 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, 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 |
public StaticInterceptor()
| Method Detail |
public boolean getListings()
public void setListings(boolean listings)
public void setUseInternal(boolean internal)
internal - true do an internal redirect.
false do a 301 redirect.public void setStrict23Welcome(boolean support)
support - true Allow mapped servlets.
false Allow only files.public void setUseAcceptLanguage(boolean use)
public void setUseCharset(java.lang.String charset)
public void setExtraSafety(boolean safe)
false since it also prevents
certain include/forwards from working.
public void engineInit(ContextManager cm)
throws TomcatException
BaseInterceptor
engineInit in class BaseInterceptorTomcatException - The module will not be added if any
exception is thrown by engineInit.
public void contextInit(Context ctx)
throws TomcatException
BaseInterceptor
contextInit in class BaseInterceptorTomcatExceptionpublic int requestMap(Request req)
BaseInterceptor
requestMap in class BaseInterceptor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||