[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Another problem with jar urls
bill.burke@jboss.com
do-not-reply at jboss.com
Mon Nov 13 13:47:48 EST 2006
I found out that the hard way as well.... You have to do openConnection() typecast it to JarUrlConnection to gain access.
Another way to do it which I experimented with was to *not* put "jar:" in front of jarfiles for the URL. I don't know why that was done in the first place other than to make the code a little easier to write.
In my "vfsfile:" prototype, I had the Handlers spit out the "real" URLs while VirtualFile.toURL() would return a "vfsfile:" based URL. The AbstractJarHandler would always return a "file:" based URL. Only jarentries would return a "jar:" based one.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985574#3985574
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985574
More information about the jboss-dev-forums
mailing list