Package org.exoplatform.container.ar
Class Archive
java.lang.Object
org.exoplatform.container.ar.Archive
Defines an archive with all its properties
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic URLcreateArchiveURL(String url) Creates an archive URL from a String representation of that URLbooleanstatic 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 suffixesgetType()inthashCode()booleanIndicates whether the archive can be a directorystatic booleanisArchiveURL(String url) Indicates whether or not the provided URL is an archive URLbooleanIndicates whether the archive is replaceable with a directory without extensiontoString()
-
Field Details
-
PROTOCOL
The protocol used to define an URL that defines a resource into an archive- See Also:
-
WAR
The most common description of a Web Application ARchive -
EAR
The most common description of a Enterprise Application ARchive
-
-
Constructor Details
-
Archive
The default constructor
-
-
Method Details
-
getType
- Returns:
- the type of the archive
-
isUseDirWoExt
public boolean isUseDirWoExt()Indicates whether the archive is replaceable with a directory without extension -
isAllowsDir
public boolean isAllowsDir()Indicates whether the archive can be a directory -
getSubArchives
- Returns:
- the archives that can be included in the current archive
-
hashCode
public int hashCode() -
equals
-
toString
-
getConfigurationURL
public static Collection<URL> getConfigurationURL(List<String> appDeployDirectories, Set<Archive> appDeployArchives, String configuration) throws IOException Gives a Collection of URL corresponding to the configuration files that could be found under the given directories inside archives with the given suffixes- Parameters:
appDeployDirectories- the list of directory to scanappDeployArchives- the list of archives to scanconfiguration- the relative path to the configuration file- Returns:
- the URL of the configuration files that could be found
- Throws:
IOException- If we cannot access to the content of the archives for some reasons
-
createArchiveURL
Creates an archive URL from a String representation of that URL- Parameters:
url- the String representation- Returns:
- the corresponding
URL - Throws:
MalformedURLException- If the URL is incorrect
-
isArchiveURL
Indicates whether or not the provided URL is an archive URL- Parameters:
url- the String representation of the URL to check- Returns:
trueif it is an archive URL, false otherwise
-