public XBootURLConnection(JarURLConnection jarURLConnection, XDecryptor xDecryptor, XEncryptor xEncryptor, XKey xKey) throws MalformedURLException { super(jarURLConnection.getURL()); this.jarURLConnection = jarURLConnection; this.xDecryptor = xDecryptor; this.xEncryptor = xEncryptor; this.xKey = xKey; }
public XWarURLConnection(JarURLConnection jarURLConnection, XDecryptor xDecryptor, XEncryptor xEncryptor, XKey xKey) throws MalformedURLException { super(jarURLConnection.getURL()); this.jarURLConnection = jarURLConnection; this.xDecryptor = xDecryptor; this.xEncryptor = xEncryptor; this.xKey = xKey; }
public XJarURLConnection(JarURLConnection jarURLConnection, XDecryptor xDecryptor, XEncryptor xEncryptor, XKey xKey) throws MalformedURLException { super(jarURLConnection.getURL()); this.jarURLConnection = jarURLConnection; this.xDecryptor = xDecryptor; this.xEncryptor = xEncryptor; this.xKey = xKey; }
@Override public URL getURL() { return jarURLConnection.getURL(); }
@Override public URL getURL() { return jarURLConnection.getURL(); }
@Override public URL getURL() { return jarURLConnection.getURL(); }
/** * * @param resourceName * @return * @throws IOException */ @Override protected Enumeration<URL> findResources(String resourceName) throws IOException { LinkedList<URL> l = new LinkedList<URL>(); while (resourceName.startsWith("/") && resourceName.length() > 1) { resourceName = resourceName.substring(1); } for (URL url : extClassPathUrl) { JarURLConnection u = _findJarEntryConnection(url, resourceName); if (u != null) { l.add(u.getURL()); } } return Collections.enumeration(l); }
private void tldScanJar(JarURLConnection conn) { JarFile jarFile = null; String name = null; try { conn.setUseCaches(false); jarFile = conn.getJarFile(); Enumeration<JarEntry> entries = jarFile.entries(); while (entries.hasMoreElements()) { JarEntry entry = entries.nextElement(); name = entry.getName(); if (!name.startsWith("META-INF/")) continue; if (!name.endsWith(".tld")) continue; InputStream stream = jarFile.getInputStream(entry); XmlErrorHandler handler = tldScanStream(stream); handler.logFindings(log, conn.getURL() + name); } } catch (IOException ioe) { log.warn(sm.getString("tldConfig.jarFail", conn.getURL() + name), ioe); } finally { if (jarFile != null) { try { jarFile.close(); } catch (Throwable t) { ExceptionUtils.handleThrowable(t); } } } }
private void tldScanJar(JarURLConnection conn) { JarFile jarFile = null; String name = null; try { conn.setUseCaches(false); jarFile = conn.getJarFile(); Enumeration<JarEntry> entries = jarFile.entries(); while (entries.hasMoreElements()) { JarEntry entry = entries.nextElement(); name = entry.getName(); if (!name.startsWith("META-INF/")) continue; if (!name.endsWith(".tld")) continue; InputStream stream = jarFile.getInputStream(entry); XmlErrorHandler handler = tldScanStream(stream); handler.logFindings(log, conn.getURL() + name); } } catch (IOException ioe) { log.warn(sm.getString("tldConfig.jarFail", conn.getURL() + name), ioe); } finally { if (jarFile != null) { try { jarFile.close(); } catch (Throwable t) { ExceptionUtils.handleThrowable(t); } } } }
private void tldScanJar(JarURLConnection conn) { JarFile jarFile = null; String name = null; try { conn.setUseCaches(false); jarFile = conn.getJarFile(); Enumeration<JarEntry> entries = jarFile.entries(); while (entries.hasMoreElements()) { JarEntry entry = entries.nextElement(); name = entry.getName(); if (!name.startsWith("META-INF/")) continue; if (!name.endsWith(".tld")) continue; InputStream stream = jarFile.getInputStream(entry); XmlErrorHandler handler = tldScanStream(stream); handler.logFindings(log, conn.getURL() + name); } } catch (IOException ioe) { log.warn(sm.getString("tldConfig.jarFail", conn.getURL() + name), ioe); } finally { if (jarFile != null) { try { jarFile.close(); } catch (Throwable t) { ExceptionUtils.handleThrowable(t); } } } }
/** * * @param name * @return */ @Override protected URL findResource(String name) { JarURLConnection juc = _findJarConnection(name); if (juc != null) { URL jarUrl = juc.getURL(); if (isDebugEnabled()) { System.out.println(log("found resource : " + jarUrl, LVL.SYS_NOT)); } return jarUrl; } else { if (isDebugEnabled()) { System.out.println(log("resource not found : " + name, LVL.SYS_NOT)); } return null; } }
fragment.setURL(urlConn.getURL()); if (fragment.getName() == null) { fragment.setName(fragment.getURL().toString());
jar = JarFactory.newInstance(jarConn.getURL()); is = jar.getEntryInputStream(); XmlErrorHandler handler = tldScanStream(is); handler.logFindings(log, jarConn.getURL() + entryName); } finally { if (is != null) { log.warn(sm.getString("tldConfig.jarFail", jarConn.getURL()), ioe); } finally { if (jar != null) {
fragment.setURL(urlConn.getURL()); if (fragment.getName() == null) { fragment.setName(fragment.getURL().toString());
jar = JarFactory.newInstance(jarConn.getURL()); is = jar.getEntryInputStream(); XmlErrorHandler handler = tldScanStream(is); handler.logFindings(log, jarConn.getURL() + entryName); } finally { if (is != null) { log.warn(sm.getString("tldConfig.jarFail", jarConn.getURL()), ioe); } finally { if (jar != null) {
@Override public void scan(JarURLConnection jarConn) throws IOException { URL url = jarConn.getURL(); URL resourceURL = jarConn.getJarFileURL(); Jar jar = null;
@Override public void scan(JarURLConnection jarConn) throws IOException { URL url = jarConn.getURL(); URL resourceURL = jarConn.getJarFileURL(); Jar jar = null;
Jar jar = JarFactory.newInstance(urlConn.getURL()); URL jarURL = jar.getJarFileURL(); try {
throws IOException { URL url = jarConn.getURL(); URL resourceURL = jarConn.getJarFileURL(); Jar jar = null;
jar = JarFactory.newInstance(jarConn.getURL());