Save This Page
Home » apache-tomcat-6.0.16-src » org.apache.jk » config » [javadoc | source]
org.apache.jk.config
public class: IISConfig [javadoc | source]
java.lang.Object
   org.apache.jk.config.BaseJkConfig
      org.apache.jk.config.IISConfig

All Implemented Interfaces:
    LifecycleListener

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:

Field Summary
public static final  String WORKERS_CONFIG     
public static final  String URI_WORKERS_MAP_CONFIG     
public static final  String ISAPI_LOG_LOCATION     
public static final  String ISAPI_REG_FILE     
Fields inherited from org.apache.jk.config.BaseJkConfig:
configHome,  workersConfig,  jkLog,  jkDebug,  jkWorker,  noRoot,  forwardAll,  tomcatHome,  regenerate,  append,  legacy
Constructor:
 public IISConfig() 
Method from org.apache.jk.config.IISConfig Summary:
addMapping,   addMapping,   generateContextMappings,   generateJkHead,   generateStupidMappings,   getWriter,   initProperties,   setRegConfig,   setUriConfig
Methods from 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,   patch,   setAppend,   setConfigHome,   setForwardAll,   setJkDebug,   setJkLog,   setJkWorker,   setLegacy,   setNoRoot,   setWorkersConfig
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jk.config.IISConfig Detail:
 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) 
 protected  void generateStupidMappings(Context context,
    PrintWriter uri_worker) 
    Forward all requests for a context to tomcat. The default.
 protected PrintWriter getWriter() throws IOException 
 protected  void initProperties() 
    Initialize defaults for properties that are not set explicitely
 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.

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