org.apache.jk.config
public class NSConfig extends BaseJkConfig
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:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NS_CONFIG |
static java.lang.String |
NSAPI_LOG_LOCATION |
static java.lang.String |
NSAPI_REDIRECTOR
default location of nsapi plug-in.
|
static java.lang.String |
WORKERS_CONFIG |
append, configHome, forwardAll, jkDebug, jkLog, jkWorker, legacy, noRoot, regenerate, tomcatHome, workersConfig| Constructor and Description |
|---|
NSConfig() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addExtensionMapping, execute, executeContext, executeEngine, executeHost, executeServer, generateSSLConfig, generateVhostHead, generateVhostTail, getAbsoluteDocBase, getConfigFile, getHost, isAbsolute, lifecycleEvent, patch, setAppend, setConfigHome, setForwardAll, setJkDebug, setJkLog, setJkWorker, setLegacy, setNoRoot, setWorkersConfigpublic 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
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 BaseJkConfigprotected java.io.PrintWriter getWriter()
throws java.io.IOException
BaseJkConfiggetWriter in class BaseJkConfigjava.io.IOExceptionprotected boolean generateJkHead(java.io.PrintWriter mod_jk)
BaseJkConfiggenerateJkHead in class BaseJkConfigprotected void generateJkTail(java.io.PrintWriter objfile)
BaseJkConfiggenerateJkTail in class BaseJkConfigprotected void generateStupidMappings(Context context, java.io.PrintWriter objfile)
generateStupidMappings in class BaseJkConfigprotected void generateContextMappings(Context context, java.io.PrintWriter objfile)
generateContextMappings in class BaseJkConfigprotected 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 BaseJkConfigCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.