Project: Tomcat
Bug 26701 Enabling web applications to register their own stream handlers
Reported: 2004-02-05 21:30:18 | Status: resolved fixed

A stream handler factory can be registered once per VM and tomcat registers the DirContextStreamHandlerFactory for the jndi protocol. However if there are web applications running inside that want to register handlers for custom scheme currently it is not possible. Can the DirContextStreamHandlerFactory be enhanced to allow applications to register stream handler for custom schemes they might have. Or better can this be a made a property in the context.xml file ? Is this already there - or can this enhanced in the future?

Files changed in fix:
java/org/apache/catalina/loader/WebappLoader.java java/org/apache/naming/resources/Constants.java java/org/apache/naming/resources/DirContextURLStreamHandlerFactory.java test/org/apache/naming/resources/TestDirContextURLStreamHandlerFactory.java