|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.zeroturnaround.liverebel.util.LiveApplicationUtil
public class LiveApplicationUtil
Generic utilities for LiveRebel applications.
LiveRebelXml| Nested Class Summary | |
|---|---|
static class |
LiveApplicationUtil.ApplicationType
Use this instead |
| Field Summary | |
|---|---|
static String |
LIVEREBEL_DIRECTORY
|
static String |
LIVEREBEL_PREFIX
|
static String |
META_INF_PREFIX
|
static String |
TYPE_EAR
Deprecated. |
static String |
TYPE_JAR
Deprecated. |
static String |
TYPE_WAR
Deprecated. |
static String |
TYPE_ZIP
Deprecated. |
static String |
WEB_INF_CLASSES_PREFIX
|
| Constructor Summary | |
|---|---|
LiveApplicationUtil()
|
|
| Method Summary | |
|---|---|
static void |
checkEarModuleLiveRebelXml(File application)
Checks that EAR module application names do not overlap. |
static LiveApplicationUtil.ApplicationType |
findApplicationType(File application)
Detects the application type. |
static LiveApplicationUtil.ApplicationType |
findApplicationType(File application,
String originalFilename)
|
static Set<String> |
findEarModulePaths(File application)
Finds the module paths of an EAR. |
protected static LiveApplicationUtil.ApplicationType |
findJavaArchiveType(File application)
|
static LiveRebelXml |
findLiveRebelXml(File application)
Finds and parses a liverebel.xml of the given application. |
static LiveRebelXml |
findLiveRebelXml(File application,
String prefix)
Finds and parses a liverebel.xml of the given application. |
static LiveRebelXml |
findLiveRebelXml(ZipInputStream applicationAsStream)
Finds and parses a liverebel.xml of the given application. |
static byte[] |
findLiveRebelXmlContents(File application)
Finds the liverebel.xml contents in the given application. |
static byte[] |
findLiveRebelXmlContents(File application,
String prefix)
Finds the liverebel.xml contents in the given application. |
static byte[] |
findLiveRebelXmlContents(ZipInputStream applicationAsStream)
Finds the liverebel.xml contents in the given application. |
static String |
getDefaultContextPath(String appId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_JAR
public static final String TYPE_WAR
public static final String TYPE_EAR
public static final String TYPE_ZIP
public static final String LIVEREBEL_DIRECTORY
public static final String WEB_INF_CLASSES_PREFIX
public static final String LIVEREBEL_PREFIX
public static final String META_INF_PREFIX
| Constructor Detail |
|---|
public LiveApplicationUtil()
| Method Detail |
|---|
public static LiveApplicationUtil.ApplicationType findApplicationType(File application)
application - EAR, WAR or JAR file/directory (not null).
public static LiveApplicationUtil.ApplicationType findApplicationType(File application,
String originalFilename)
protected static LiveApplicationUtil.ApplicationType findJavaArchiveType(File application)
public static Set<String> findEarModulePaths(File application)
application - EAR directory or file.
public static LiveRebelXml findLiveRebelXml(File application)
liverebel.xml of the given application.
application - EAR, WAR or JAR file/directory.
liverebel.xml of this application
or null if no liverebel.xml was found.
public static LiveRebelXml findLiveRebelXml(File application,
String prefix)
liverebel.xml of the given application.
application - EAR, WAR or JAR file/directory.prefix - a root directory to perform the search in.
liverebel.xml of this application
or null if no liverebel.xml was found.public static LiveRebelXml findLiveRebelXml(ZipInputStream applicationAsStream)
liverebel.xml of the given application.
applicationAsStream - ZipInputStream from EAR, WAR or JAR file.
liverebel.xml of this application
or null if no liverebel.xml was found.public static byte[] findLiveRebelXmlContents(File application)
liverebel.xml contents in the given application.
application - EAR, WAR, JAR or ZIP file/directory.
liverebel.xml contents of this application
or null if nothing found.
public static byte[] findLiveRebelXmlContents(File application,
String prefix)
liverebel.xml contents in the given application.
application - EAR, WAR, JAR or ZIP file/directory.prefix - a root directory to perform the search in.
liverebel.xml contents of this application
or null if nothing found.public static byte[] findLiveRebelXmlContents(ZipInputStream applicationAsStream)
liverebel.xml contents in the given application.
applicationAsStream - ZipInputStream from EAR, WAR or JAR file.
liverebel.xml contents of this application
or null if nothing found.
public static void checkEarModuleLiveRebelXml(File application)
throws IOException
application - from EAR, WAR or JAR file.
IOExceptionpublic static String getDefaultContextPath(String appId)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||