| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jk.config.BaseJkConfig
org.apache.jk.config.NSConfig
public class NSConfig
Generates automatic Netscape nsapi_redirect configurations based on the Tomcat server.xml settings and the war contexts initialized during startup.
This config interceptor is enabled by inserting an NSConfig element in the <ContextManager> tag body inside the server.xml file like so:
 < ContextManager ... >
   ...
   <NSConfig options />
   ...
 < /ContextManager >
    
    where options can include any of the following attributes:
    
| Field Summary | |
|---|---|
| static java.lang.String | NS_CONFIG | 
| static java.lang.String | NSAPI_LOG_LOCATION | 
| static java.lang.String | NSAPI_REDIRECTORdefault location of nsapi plug-in. | 
| static java.lang.String | WORKERS_CONFIG | 
| Fields inherited from class org.apache.jk.config.BaseJkConfig | 
|---|
| append, configHome, forwardAll, jkDebug, jkLog, jkWorker, legacy, noRoot, regenerate, tomcatHome, workersConfig | 
| Constructor Summary | |
|---|---|
| NSConfig() | |
| Method Summary | |
|---|---|
| protected  boolean | addMapping(java.lang.String fullPath,
           java.io.PrintWriter objfile)Add a fulling specified Netscape mapping. | 
| protected  boolean | addMapping(java.lang.String ctxPath,
           java.lang.String ext,
           java.io.PrintWriter objfile)Add a Netscape extension mapping. | 
| protected  void | generateContextMappings(Context context,
                        java.io.PrintWriter objfile) | 
| protected  boolean | generateJkHead(java.io.PrintWriter mod_jk)Generate general options | 
| protected  void | generateJkTail(java.io.PrintWriter objfile)Generate general options | 
| protected  void | generateStupidMappings(Context context,
                       java.io.PrintWriter objfile)Forward all requests for a context to tomcat. | 
| protected  java.io.PrintWriter | getWriter()Get the output Writer. | 
| protected  void | initProperties()Initialize defaults for properties that are not set explicitely | 
|  void | setNsapiJk(java.lang.String path)set the path to the nsapi plugin module | 
|  void | setObjConfig(java.lang.String path)set the path to the output file for the auto-generated isapi_redirect registry file. | 
|  void | setObjectName(java.lang.String name)Set the name for the Object that implements the jk_service call. | 
| Methods inherited from class org.apache.jk.config.BaseJkConfig | 
|---|
| addExtensionMapping, execute, executeContext, executeEngine, executeHost, executeServer, generateSSLConfig, generateVhostHead, generateVhostTail, 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 WORKERS_CONFIG
public static final java.lang.String NS_CONFIG
public static final java.lang.String NSAPI_LOG_LOCATION
public static final java.lang.String NSAPI_REDIRECTOR
| Constructor Detail | 
|---|
public NSConfig()
| Method Detail | 
|---|
public void setObjConfig(java.lang.String path)
path - String path to a filepublic void setNsapiJk(java.lang.String path)
path - String path to a filepublic void setObjectName(java.lang.String name)
name - Name of the obj.conf Objectprotected void initProperties()
initProperties in class BaseJkConfig
protected java.io.PrintWriter getWriter()
                                 throws java.io.IOException
BaseJkConfig
getWriter in class BaseJkConfigjava.io.IOExceptionprotected boolean generateJkHead(java.io.PrintWriter mod_jk)
BaseJkConfig
generateJkHead in class BaseJkConfigprotected void generateJkTail(java.io.PrintWriter objfile)
BaseJkConfig
generateJkTail in class BaseJkConfig
protected void generateStupidMappings(Context context,
                                      java.io.PrintWriter objfile)
generateStupidMappings in class BaseJkConfig
protected void generateContextMappings(Context context,
                                       java.io.PrintWriter objfile)
generateContextMappings in class BaseJkConfig
protected boolean addMapping(java.lang.String ctxPath,
                             java.lang.String ext,
                             java.io.PrintWriter objfile)
protected boolean addMapping(java.lang.String fullPath,
                             java.io.PrintWriter objfile)
addMapping in class BaseJkConfig| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||