|
||||||||||
| 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| Field Summary | |
|---|---|
static String |
TYPE_EAR
|
static String |
TYPE_JAR
|
static String |
TYPE_WAR
|
static String |
WEB_INF_CLASSES_PREFIX
|
| Constructor Summary | |
|---|---|
LiveApplicationUtil()
|
|
| Method Summary | |
|---|---|
static String |
findApplicationType(File application)
Detects the application type. |
static Set |
findEarModulePaths(File application)
Finds the module paths of an EAR. |
static LiveRebelXml |
findLiveRebelXml(File application)
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(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 WEB_INF_CLASSES_PREFIX
| Constructor Detail |
|---|
public LiveApplicationUtil()
| Method Detail |
|---|
public static String findApplicationType(File application)
application - EAR, WAR or JAR file/directory (not null).
public static Set 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(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 or JAR file/directory.
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 String getDefaultContextPath(String appId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||