|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.ar.Archive
public class Archive
Defines an archive with all its properties
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Archive(String type,
boolean useDirWoExt,
boolean allowsDir,
Set<Archive> subArchives)
The default constructor |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROTOCOL
public static final Archive WAR
public static final Archive EAR
| Constructor Detail |
|---|
public Archive(String type,
boolean useDirWoExt,
boolean allowsDir,
Set<Archive> subArchives)
| Method Detail |
|---|
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 file
IOException - If we cannot access to the content of the archives for some reasons
public static URL createArchiveURL(String url)
throws MalformedURLException
url - the String representation
URL
MalformedURLException - If the URL is incorrectpublic static boolean isArchiveURL(String url)
url - the String representation of the URL to check
true if it is an archive URL, false otherwise
|
eXo Kernel :: Container 2.5.0-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||