|
|||||||||||
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.BaseJkConfig
org.apache.tomcat.modules.config.ApacheConfig
Generates automatic apache mod_jk configurations based on the Tomcat server.xml settings and the war contexts initialized during startup.
This config interceptor is enabled by inserting an ApacheConfig element in the <ContextManager> tag body inside the server.xml file like so:
< ContextManager ... > ... <ApacheConfig options /> ... < /ContextManager >where options can include any of the following attributes:
Field Summary | |
static java.lang.String |
JK_LOG_LOCATION
default mod_jk log file location |
static java.lang.String |
MOD_JK
default location of mod_jk Apache plug-in. |
static java.lang.String |
MOD_JK_CONFIG
default path to mod_jk .conf location |
static java.lang.String |
WORKERS_CONFIG
default path to workers.properties file This should be also auto-generated from server.xml. |
Fields inherited from class org.apache.tomcat.modules.config.BaseJkConfig |
configHome, forwardAll, jkDebug, jkLog, jkWorker, noRoot, regenerate, tomcatHome, workersConfig |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, debug, DECLINED, loghelper, OK |
Constructor Summary | |
ApacheConfig()
|
Method Summary | |
protected boolean |
addExtensionMapping(java.lang.String ctxPath,
java.lang.String ext,
java.io.PrintWriter mod_jk)
Add an Apache extension mapping. |
protected boolean |
addMapping(java.lang.String fullPath,
java.io.PrintWriter mod_jk)
Add a fulling specified Appache mapping. |
void |
execute(ContextManager cm)
executes the ApacheConfig interceptor. |
protected void |
initProperties(ContextManager cm)
Initialize defaults for properties that are not set explicitely |
void |
setCertsIndicator(java.lang.String s)
What is the indicator for the client SSL certificated(default is SSL_CLIENT_CERT |
void |
setCipherIndicator(java.lang.String s)
What is the indicator for client SSL cipher suit (default is SSL_CIPHER) |
void |
setExtractSSL(boolean sslMode)
By default mod_jk is configured to collect SSL information from the apache environment and send it to the Tomcat workers. |
void |
setHttpsIndicator(java.lang.String s)
What is the indicator for SSL (default is HTTPS) |
void |
setJkConfig(java.lang.String path)
set the path to the output file for the auto-generated mod_jk configuration file. |
void |
setModJk(java.lang.String path)
set the path to the mod_jk Apache Module |
void |
setSessionIndicator(java.lang.String s)
What is the indicator for SSL session (default is SSL_SESSION_ID) |
Methods inherited from class org.apache.tomcat.modules.config.BaseJkConfig |
addInterceptor, addMapping, contextInit, engineState, getAbsoluteDocBase, initWorker, setConfigHome, setForwardAll, setJkDebug, setJkLog, setJkWorker, setNoRoot, setWorkersConfig |
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addContext, addHandler, 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 MOD_JK_CONFIG
public static final java.lang.String WORKERS_CONFIG
public static final java.lang.String JK_LOG_LOCATION
public static java.lang.String MOD_JK
Constructor Detail |
public ApacheConfig()
Method Detail |
public void setJkConfig(java.lang.String path)
public void setModJk(java.lang.String path)
public void setExtractSSL(boolean sslMode)
public void setHttpsIndicator(java.lang.String s)
public void setSessionIndicator(java.lang.String s)
public void setCipherIndicator(java.lang.String s)
public void setCertsIndicator(java.lang.String s)
protected void initProperties(ContextManager cm)
initProperties
in class BaseJkConfig
public void execute(ContextManager cm) throws TomcatException
execute
in class BaseJkConfig
TomcatException
protected boolean addExtensionMapping(java.lang.String ctxPath, java.lang.String ext, java.io.PrintWriter mod_jk)
addExtensionMapping
in class BaseJkConfig
protected boolean addMapping(java.lang.String fullPath, java.io.PrintWriter mod_jk)
addMapping
in class BaseJkConfig
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |