Class TagPluginParser
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.tagplugin.TagPluginParser
-
public class TagPluginParser extends java.lang.ObjectParser for Tag Plugin descriptors.
-
-
Constructor Summary
Constructors Constructor Description TagPluginParser(ServletContext context, boolean blockExternal)Creates a new TagPluginParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPlugin(java.lang.String tagClass, java.lang.String pluginClass)Registers a plugin class for the given tag class.java.util.Map<java.lang.String,java.lang.String>getPlugins()Returns the map of registered tag plugins.voidparse(java.net.URL url)Parses a tag plugin descriptor from the given URL.
-
-
-
Constructor Detail
-
TagPluginParser
public TagPluginParser(ServletContext context, boolean blockExternal)
Creates a new TagPluginParser.- Parameters:
context- the servlet contextblockExternal- whether to block external entities
-
-
Method Detail
-
parse
public void parse(java.net.URL url) throws java.io.IOException, org.xml.sax.SAXExceptionParses a tag plugin descriptor from the given URL.- Parameters:
url- the URL of the descriptor file- Throws:
java.io.IOException- if an I/O error occursorg.xml.sax.SAXException- if a parsing error occurs
-
addPlugin
public void addPlugin(java.lang.String tagClass, java.lang.String pluginClass)Registers a plugin class for the given tag class.- Parameters:
tagClass- the tag handler class namepluginClass- the plugin class name
-
getPlugins
public java.util.Map<java.lang.String,java.lang.String> getPlugins()
Returns the map of registered tag plugins.- Returns:
- the map from tag class names to plugin class names
-
-