org.apache.jk.config

Class IISConfig

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:

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

Author: Costin Manolache Larry Isaacs Gal Shachor Bill Barker

Field Summary
static StringISAPI_LOG_LOCATION
static StringISAPI_REG_FILE
static StringURI_WORKERS_MAP_CONFIG
static StringWORKERS_CONFIG
Constructor Summary
IISConfig()
Method Summary
protected booleanaddMapping(String ctxPath, String ext, PrintWriter uri_worker)
Add an IIS extension mapping.
protected booleanaddMapping(String fullPath, PrintWriter uri_worker)
Add a fulling specified IIS mapping.
protected voidgenerateContextMappings(Context context, PrintWriter uri_worker)
protected booleangenerateJkHead(PrintWriter mod_jk)
protected voidgenerateStupidMappings(Context context, PrintWriter uri_worker)
Forward all requests for a context to tomcat.
protected PrintWritergetWriter()
protected voidinitProperties()
Initialize defaults for properties that are not set explicitely
voidsetRegConfig(String path)
set the path to the output file for the auto-generated isapi_redirect registry file.
voidsetUriConfig(String path)
set a path to the uriworkermap.properties file.

Field Detail

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 Detail

IISConfig

public IISConfig()

Method Detail

addMapping

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

addMapping

protected boolean addMapping(String fullPath, PrintWriter uri_worker)
Add a fulling specified IIS mapping.

generateContextMappings

protected void generateContextMappings(Context context, PrintWriter uri_worker)

generateJkHead

protected boolean generateJkHead(PrintWriter mod_jk)

generateStupidMappings

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

getWriter

protected PrintWriter getWriter()

initProperties

protected void initProperties()
Initialize defaults for properties that are not set explicitely

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: path String path to a file

setUriConfig

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

Parameters: path String path to uriworkermap.properties file

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.