Java Code Examples for org.apache.tomcat.util.buf.UriUtil#warToJar()
The following examples show how to use
org.apache.tomcat.util.buf.UriUtil#warToJar() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JarFactory.java From Tomcat8-Source-Read with MIT License | 6 votes |
public static Jar newInstance(URL url) throws IOException { String urlString = url.toString(); if (urlString.startsWith("jar:file:")) { if (urlString.endsWith("!/")) { return new JarFileUrlJar(url, true); } else { return new JarFileUrlNestedJar(url); } } else if (urlString.startsWith("war:file:")) { URL jarUrl = UriUtil.warToJar(url); return new JarFileUrlNestedJar(jarUrl); } else if (urlString.startsWith("file:")) { return new JarFileUrlJar(url, false); } else { return new UrlJar(url); } }
Example 2
Source File: WarURLConnection.java From Tomcat8-Source-Read with MIT License | 4 votes |
protected WarURLConnection(URL url) throws IOException { super(url); URL innerJarUrl = UriUtil.warToJar(url); wrappedJarUrlConnection = innerJarUrl.openConnection(); }