org.xwiki.classloader.internal.protocol.jar
Interface JarURLConnection.JarOpener
- All Known Implementing Classes:
- JarProxy
- Enclosing class:
- JarURLConnection
public static interface JarURLConnection.JarOpener
Abstraction of JAR opener which allows to implement various caching policies. The opener receives URL pointing to
the JAR file, along with other meta-information, as a JarURLConnection instance. Then it has to download the file
(if it is remote) and open it.
- Version:
- 1.0
- Author:
- Dawid Kurzyniec
|
Method Summary |
java.util.jar.JarFile |
openJarFile(JarURLConnection conn)
Given the URL connection (not yet connected), return JarFile representing the resource. |
openJarFile
java.util.jar.JarFile openJarFile(JarURLConnection conn)
throws java.io.IOException
- Given the URL connection (not yet connected), return JarFile representing the resource. This method is
invoked as a part of the
JarURLConnection.connect() method in JarURLConnection.
- Parameters:
conn - the connection for which the JAR file is required
- Returns:
- opened JAR file
- Throws:
java.io.IOException - if I/O error occurs
Copyright © 2004-2011 XWiki. All Rights Reserved.