|
|||||||||||
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.config.AutoWebApp
Automatically add all the web applications from a directory. You can use multiple AutoWebApp modules with different locations. This module will not "deploy" wars or do any other configuration. It'll just use all the sub-directories as web application bases, and use a simple escaping scheme. Based on the original AutoSetup.
Field Summary |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, DECLINED, loghelper, OK |
Constructor Summary | |
AutoWebApp()
|
Method Summary | |
void |
engineInit(ContextManager cm)
Initialize the module. |
void |
setDir(java.lang.String d)
Use this directory for auto configuration. |
void |
setFlat(boolean b)
Not implemented - default is true. |
void |
setHost(java.lang.String h)
All applications in the directory will be added to a single virtual host. |
void |
setHostChar(java.lang.String c)
|
void |
setHostDotChar(java.lang.String c)
|
void |
setIngoreDot(boolean b)
Ignore directories starting with a "." |
void |
setPathSlashChar(java.lang.String c)
|
void |
setPrefix(java.lang.String s)
Add a prefix to all deployed context paths |
void |
setProfile(java.lang.String s)
Set the "profile" attribute on each context. |
void |
setReloadable(boolean b)
|
void |
setTrusted(boolean b)
Set the trusted attribute to all apps. |
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addContext, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextInit, 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, 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 |
public AutoWebApp()
Method Detail |
public void setDir(java.lang.String d)
d
- A directory containing your applications.
If it's not an absoulte path, TOMCAT_HOME will be used as base.public void setPrefix(java.lang.String s)
public void setHost(java.lang.String h)
public void setIngoreDot(boolean b)
public void setFlat(boolean b)
public void setProfile(java.lang.String s)
public void setTrusted(boolean b)
public void setReloadable(boolean b)
public void setHostChar(java.lang.String c)
public void setHostDotChar(java.lang.String c)
public void setPathSlashChar(java.lang.String c)
public void engineInit(ContextManager cm) throws TomcatException
BaseInterceptor
engineInit
in class BaseInterceptor
TomcatException
- The module will not be added if any
exception is thrown by engineInit.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |