org.apache.catalina.startup

Class TldConfig


public final class TldConfig
extends java.lang.Object

Startup event listener for a Context that configures the properties of that Context, and the associated defined servlets.

Authors:
Craig R. McClanahan
Jean-Francois Arcand
Costin Manolache

Method Summary

void
addApplicationListener(String s)
void
execute()
Scan for and configure all tag library descriptors found in this web application.
Context
getContext()
String[]
getTldListeners()
boolean
getTldNamespaceAware()
Get the server.xml attribute's xmlNamespaceAware.
boolean
getTldValidation()
Get the server.xml attribute's xmlValidation.
boolean
isRescan()
void
setContext(Context context)
static void
setNoTldJars(String jarNames)
Sets the list of JARs that are known not to contain any TLDs.
void
setRescan(boolean rescan)
void
setTldNamespaceAware(boolean tldNamespaceAware)
Set the namespace aware feature of the XML parser used when parsing xml instances.
void
setTldValidation(boolean tldValidation)
Set the validation feature of the XML parser used when parsing xml instances.

Method Details

addApplicationListener

public void addApplicationListener(String s)


execute

public void execute()
            throws Exception
Scan for and configure all tag library descriptors found in this web application.


getContext

public Context getContext()


getTldListeners

public String[] getTldListeners()


getTldNamespaceAware

public boolean getTldNamespaceAware()
Get the server.xml attribute's xmlNamespaceAware.

Returns:
true if namespace awarenes is enabled.


getTldValidation

public boolean getTldValidation()
Get the server.xml attribute's xmlValidation.

Returns:
true if validation is enabled.


isRescan

public boolean isRescan()


setContext

public void setContext(Context context)


setNoTldJars

public static void setNoTldJars(String jarNames)
Sets the list of JARs that are known not to contain any TLDs.

Parameters:
jarNames - List of comma-separated names of JAR files that are known not to contain any TLDs


setRescan

public void setRescan(boolean rescan)


setTldNamespaceAware

public void setTldNamespaceAware(boolean tldNamespaceAware)
Set the namespace aware feature of the XML parser used when parsing xml instances.

Parameters:
tldNamespaceAware - true to enable namespace awareness


setTldValidation

public void setTldValidation(boolean tldValidation)
Set the validation feature of the XML parser used when parsing xml instances.

Parameters:
tldValidation - true to enable xml instance validation


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