You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "eugeny-a.smirnov" <eu...@db.com> on 2009/12/04 17:52:29 UTC

Re: Custom URL handlers in Tomcat web app

Hi

I've resolved this issue in this way:

  URLStreamHandlerFactoryImpl.termspecProtocolHandler = handlerClass;
        try {
            for (final Field field : URL.class.getDeclaredFields()) {
                if ("factory".equalsIgnoreCase(field.getName()) ) {
                    field.setAccessible(true);
                    field.set(null, new
URLStreamHandlerFactoryImpl((URLStreamHandlerFactory) field.get(null)));
                }
            }
        } catch (Throwable e) {
            logger.error(e);
        }
-- 
View this message in context: http://old.nabble.com/Custom-URL-handlers-in-Tomcat-web-app-tp15629476p26636133.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org