public class Archive extends Object
| Modifier and Type | Field and Description |
|---|---|
static Archive |
EAR
The most common description of a Enterprise Application ARchive
|
static String |
PROTOCOL
The protocol used to define an URL that defines a resource into an archive
|
static Archive |
WAR
The most common description of a Web Application ARchive
|
| Constructor and Description |
|---|
Archive(String type,
boolean useDirWoExt,
boolean allowsDir,
Set<Archive> subArchives)
The default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static URL |
createArchiveURL(String url)
Creates an archive URL from a String representation of that URL
|
boolean |
equals(Object obj) |
static Collection<URL> |
getConfigurationURL(List<String> appDeployDirectories,
Set<Archive> appDeployArchives,
String configuration)
Gives a Collection of URL corresponding to the configuration files that could be found under the given directories
inside archives with the given suffixes
|
Set<Archive> |
getSubArchives() |
String |
getType() |
int |
hashCode() |
boolean |
isAllowsDir()
Indicates whether the archive can be a directory
|
static boolean |
isArchiveURL(String url)
Indicates whether or not the provided URL is an archive URL
|
boolean |
isUseDirWoExt()
Indicates whether the archive is replaceable with a directory without extension
|
String |
toString() |
public static final String PROTOCOL
public static final Archive WAR
public static final Archive EAR
public String getType()
public boolean isUseDirWoExt()
public boolean isAllowsDir()
public Set<Archive> getSubArchives()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()public static Collection<URL> getConfigurationURL(List<String> appDeployDirectories, Set<Archive> appDeployArchives, String configuration) throws IOException
appDeployDirectories - the list of directory to scanappDeployArchives - the list of archives to scanconfiguration - the relative path to the configuration fileIOException - If we cannot access to the content of the archives for some reasonspublic static URL createArchiveURL(String url) throws MalformedURLException
url - the String representationURLMalformedURLException - If the URL is incorrectpublic static boolean isArchiveURL(String url)
url - the String representation of the URL to checktrue if it is an archive URL, false otherwiseCopyright © 2016 eXo Platform SAS. All Rights Reserved.