public abstract class AbstractArchiveDescriptorFactory extends Object implements ArchiveDescriptorFactory
Constructor and Description |
---|
AbstractArchiveDescriptorFactory() |
Modifier and Type | Method and Description |
---|---|
ArchiveDescriptor |
buildArchiveDescriptor(URL url)
Build a descriptor of the archive indicated by the given url
|
URL |
getJarURLFromURLEntry(URL url,
String entry)
Given a URL which defines an entry within a JAR (really any "bundled archive" such as a jar file, zip, etc)
and an entry within that JAR, find the URL to the JAR itself.
|
URL |
getURLFromPath(String jarPath)
Not used!
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildArchiveDescriptor
public ArchiveDescriptor buildArchiveDescriptor(URL url)
ArchiveDescriptorFactory
buildArchiveDescriptor
in interface ArchiveDescriptorFactory
url
- The url to the archivepublic URL getJarURLFromURLEntry(URL url, String entry) throws IllegalArgumentException
ArchiveDescriptorFactory
getJarURLFromURLEntry
in interface ArchiveDescriptorFactory
url
- The URL to an entry within a JARentry
- The entry that described the thing referred to by the URL relative to the JARIllegalArgumentException
- Generally indicates a problem with malformed urls.public URL getURLFromPath(String jarPath)
ArchiveDescriptorFactory
getURLFromPath
in interface ArchiveDescriptorFactory
jarPath
- The jar pathCopyright © 2020 JBoss by Red Hat. All rights reserved.