org.apache.jk.config

Class IISConfig

Implemented Interfaces:
LifecycleListener

public class IISConfig
extends BaseJkConfig

Generates automatic IIS isapi_redirect configurations based on the Tomcat server.xml settings and the war contexts initialized during startup.

This config interceptor is enabled by inserting an IISConfig element in the <ContextManager> tag body inside the server.xml file like so:

 <32ContextManager ... >
   ...
   <<b>IISConfig options />
   ...
 <32/ContextManager >
where options can include any of the following attributes:

Authors:
Costin Manolache
Larry Isaacs
Gal Shachor
Bill Barker

Field Summary

static String
ISAPI_LOG_LOCATION
static String
ISAPI_REG_FILE
static String
URI_WORKERS_MAP_CONFIG
static String
WORKERS_CONFIG

Fields inherited from class org.apache.jk.config.BaseJkConfig

append, configHome, debug, forwardAll, jkDebug, jkLog, jkWorker, legacy, noRoot, regenerate, tomcatHome, workersConfig

Constructor Summary

IISConfig()

Method Summary

protected boolean
addMapping(String fullPath, PrintWriter uri_worker)
Add a fulling specified IIS mapping.
protected boolean
addMapping(String ctxPath, String ext, PrintWriter uri_worker)
Add an IIS extension mapping.
protected void
generateContextMappings(Context context, PrintWriter uri_worker)
protected boolean
generateJkHead(PrintWriter mod_jk)
Generate general options
protected void
generateStupidMappings(Context context, PrintWriter uri_worker)
Forward all requests for a context to tomcat.
protected PrintWriter
getWriter()
Get the output Writer.
protected void
initProperties()
Initialize defaults for properties that are not set explicitely
void
setRegConfig(String path)
set the path to the output file for the auto-generated isapi_redirect registry file.
void
setUriConfig(String path)
set a path to the uriworkermap.properties file.

Methods inherited from class org.apache.jk.config.BaseJkConfig

addExtensionMapping, addMapping, execute, executeContext, executeEngine, executeHost, executeServer, generateContextMappings, generateJkHead, generateJkTail, generateSSLConfig, generateStupidMappings, generateVhostHead, generateVhostTail, getAbsoluteDocBase, getConfigFile, getHost, getWriter, initProperties, isAbsolute, lifecycleEvent, log, patch, setAppend, setConfigHome, setForwardAll, setJkDebug, setJkLog, setJkWorker, setLegacy, setNoRoot, setWorkersConfig

Field Details

ISAPI_LOG_LOCATION

public static final String ISAPI_LOG_LOCATION


ISAPI_REG_FILE

public static final String ISAPI_REG_FILE


URI_WORKERS_MAP_CONFIG

public static final String URI_WORKERS_MAP_CONFIG


WORKERS_CONFIG

public static final String WORKERS_CONFIG

Constructor Details

IISConfig

public IISConfig()

Method Details

addMapping

protected boolean addMapping(String fullPath,
                             PrintWriter uri_worker)
Add a fulling specified IIS mapping.
Overrides:
addMapping in interface BaseJkConfig


addMapping

protected boolean addMapping(String ctxPath,
                             String ext,
                             PrintWriter uri_worker)
Add an IIS extension mapping.


generateContextMappings

protected void generateContextMappings(Context context,
                                       PrintWriter uri_worker)
Overrides:
generateContextMappings in interface BaseJkConfig


generateJkHead

protected boolean generateJkHead(PrintWriter mod_jk)
Generate general options
Overrides:
generateJkHead in interface BaseJkConfig


generateStupidMappings

protected void generateStupidMappings(Context context,
                                      PrintWriter uri_worker)
Forward all requests for a context to tomcat. The default.
Overrides:
generateStupidMappings in interface BaseJkConfig


getWriter

protected PrintWriter getWriter()
            throws IOException
Get the output Writer. Override with method to generate web server specific configuration.
Overrides:
getWriter in interface BaseJkConfig


initProperties

protected void initProperties()
Initialize defaults for properties that are not set explicitely
Overrides:
initProperties in interface BaseJkConfig


setRegConfig

public void setRegConfig(String path)
set the path to the output file for the auto-generated isapi_redirect registry file. If this path is relative then getRegConfig() will resolve it absolutely against the getConfigHome() path.

Parameters:


setUriConfig

public void setUriConfig(String path)
set a path to the uriworkermap.properties file.

Parameters:


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.