|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jk.config.BaseJkConfig org.apache.jk.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
Listener
in
the server.xml file like so:
< Server ... > ...where options can include any of the following attributes:org.apache.ajp.tomcat4.config.ApacheConfig options /> ... < /Server >
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.jk.config.BaseJkConfig |
append, configHome, forwardAll, jkDebug, jkLog, jkWorker, legacy, noRoot, regenerate, tomcatHome, workersConfig |
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. |
protected boolean |
addMapping(java.lang.String ctxP,
java.lang.String ext,
java.io.PrintWriter mod_jk)
Add a partially specified Appache mapping. |
protected void |
generateContextMappings(Context context,
java.io.PrintWriter mod_jk)
|
protected boolean |
generateJkHead(java.io.PrintWriter mod_jk)
Generate the loadModule and general options |
protected void |
generateSSLConfig(java.io.PrintWriter mod_jk)
Generate SSL options |
protected void |
generateStupidMappings(Context context,
java.io.PrintWriter mod_jk)
Forward all requests for a context to tomcat. |
protected void |
generateVhostHead(Host host,
java.io.PrintWriter mod_jk)
Generate Virtual Host start |
protected void |
generateVhostTail(Host host,
java.io.PrintWriter mod_jk)
Generate Virtual Host end |
protected java.io.PrintWriter |
getWriter()
Get the output Writer. |
protected void |
initProperties()
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.jk.config.BaseJkConfig |
execute, executeContext, executeEngine, executeHost, executeServer, generateJkTail, getAbsoluteDocBase, getConfigFile, getHost, isAbsolute, lifecycleEvent, patch, setAppend, setConfigHome, setForwardAll, setJkDebug, setJkLog, setJkWorker, setLegacy, setNoRoot, setWorkersConfig |
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 final java.lang.String MOD_JK
Constructor Detail |
public ApacheConfig()
Method Detail |
public void setJkConfig(java.lang.String path)
path
- String path to a filepublic void setModJk(java.lang.String path)
path
- String path to a filepublic 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()
initProperties
in class BaseJkConfig
protected java.io.PrintWriter getWriter() throws java.io.IOException
BaseJkConfig
getWriter
in class BaseJkConfig
java.io.IOException
protected boolean generateJkHead(java.io.PrintWriter mod_jk)
generateJkHead
in class BaseJkConfig
protected void generateVhostHead(Host host, java.io.PrintWriter mod_jk)
BaseJkConfig
generateVhostHead
in class BaseJkConfig
protected void generateVhostTail(Host host, java.io.PrintWriter mod_jk)
BaseJkConfig
generateVhostTail
in class BaseJkConfig
protected void generateSSLConfig(java.io.PrintWriter mod_jk)
BaseJkConfig
generateSSLConfig
in class BaseJkConfig
protected void generateStupidMappings(Context context, java.io.PrintWriter mod_jk)
generateStupidMappings
in class BaseJkConfig
protected void generateContextMappings(Context context, java.io.PrintWriter mod_jk)
generateContextMappings
in class BaseJkConfig
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
protected boolean addMapping(java.lang.String ctxP, java.lang.String ext, java.io.PrintWriter mod_jk)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |