|
|||||||||||
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.JservConfig
Generates automatic apache mod_jserv configurations based on the Tomcat server.xml settings and the war contexts initialized during startup.
This config interceptor is enabled by inserting a JservConfig
element in the \
< ContextManager ... > ... <JservConfig options /> ... < /ContextManager >where options can include any of the following attributes:
Field Summary | |
static java.lang.String |
AJPV12
|
static java.lang.String |
APACHE_CONFIG
default path to JServ .conf location |
static java.lang.String |
JSERV_LOG_LOCATION
default mod_jserv log file location |
static java.lang.String |
MOD_JSERV
default location of mod_jserv Apache plug-in. |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, debug, DECLINED, loghelper, OK |
Constructor Summary | |
JservConfig()
|
Method Summary | |
protected boolean |
addExtensionMapping(java.lang.String ctxPath,
java.lang.String ext,
java.io.PrintWriter pw)
Add an Apache extension mapping. |
protected boolean |
addMapping(Context ctx,
Container ct,
java.io.PrintWriter pw)
|
protected boolean |
addMapping(java.lang.String fullPath,
java.lang.String app,
java.io.PrintWriter pw)
Add a fulling specified Appache mapping. |
void |
contextInit(Context ctx)
Notify when a context is initialized. |
void |
engineState(ContextManager cm,
int state)
Generate the apache configuration - only when the server is completely initialized ( before starting ) |
void |
execute(ContextManager cm)
executes the JservConfig interceptor. |
java.io.File |
getConfigHome()
|
void |
initProperties(ContextManager cm)
Initialize defaults for properties that are not set explicitely |
void |
setConfigHome(java.lang.String dir)
set a path to the parent directory of the conf folder. |
void |
setForwardAll(boolean b)
If false, we'll try to generate a config that will let apache serve static files. |
void |
setJservConfig(java.io.File path)
sets a File object pointing to the output file in which to write the mod_jserv configuration. |
void |
setJservConfig(java.lang.String path)
sets a path pointing to the output file in which to write the mod_jserv configuration. |
void |
setJservDebug(java.lang.String level)
Set the verbosity level for mod_jserv. |
void |
setJservLog(java.lang.String path)
set the path to the mod_jserv log file |
void |
setModJserv(java.io.File path)
set the path to the Jserv Apache Module |
void |
setModJserv(java.lang.String path)
set the path to the Jserv Apache Module |
void |
setNoRoot(boolean b)
Special option - do not generate mappings for the ROOT context. |
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addContext, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextMap, contextShutdown, contextState, engineInit, engineShutdown, engineStart, 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 |
Field Detail |
public static final java.lang.String APACHE_CONFIG
public static final java.lang.String JSERV_LOG_LOCATION
public static java.lang.String MOD_JSERV
public static final java.lang.String AJPV12
Constructor Detail |
public JservConfig()
Method Detail |
public void engineState(ContextManager cm, int state) throws TomcatException
engineState
in class BaseInterceptor
TomcatException
public void contextInit(Context ctx) throws TomcatException
BaseInterceptor
contextInit
in class BaseInterceptor
TomcatException
public void setForwardAll(boolean b)
public void setNoRoot(boolean b)
public void setConfigHome(java.lang.String dir)
However, if JservConfig or other path is set to an absolute path, this attribute is ignored.
If not set, execute() will set this to TOMCAT_HOME.
public java.io.File getConfigHome()
public void setJservConfig(java.lang.String path)
public void setJservConfig(java.io.File path)
public void setModJserv(java.lang.String path)
public void setModJserv(java.io.File path)
public void setJservLog(java.lang.String path)
public void setJservDebug(java.lang.String level)
public void initProperties(ContextManager cm)
public void execute(ContextManager cm) throws TomcatException
TomcatException
protected boolean addMapping(Context ctx, Container ct, java.io.PrintWriter pw)
protected boolean addExtensionMapping(java.lang.String ctxPath, java.lang.String ext, java.io.PrintWriter pw)
protected boolean addMapping(java.lang.String fullPath, java.lang.String app, java.io.PrintWriter pw)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |