|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.student.common.util.ManifestInspector
public class ManifestInspector
Obtains version information about the application from the META-INF/MANIFEST.MF file contained inside a .war file
| Field Summary | |
|---|---|
static String |
BUNDLE_BUILD_NUMBER
|
static String |
BUNDLE_NAME
|
static String |
BUNDLE_TIMESTAMP
|
static String |
BUNDLE_VERSION
|
static String |
MANIFEST_LOCATION
Location of the MANIFEST.MF file |
static String |
NO_BUILD_INFORMATION_AVAILABLE
|
| Constructor Summary | |
|---|---|
ManifestInspector()
|
|
| Method Summary | |
|---|---|
protected BuildInformation |
getBuildInformation(Manifest manifest)
Examine the manifest provided for build information. |
String |
getBuildInformationString(ServletContext context)
Obtain version information from MANIFEST.MF |
protected Manifest |
getManifest(ServletContext servletContext)
Return a Manifest object |
protected boolean |
isNullOrEmpty(BuildInformation bi)
Return true if BuildInformation is null or does not contain any meaningful information. |
String |
toString(BuildInformation bi)
Convert the build information POJO to a display String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MANIFEST_LOCATION
public static final String BUNDLE_NAME
public static final String BUNDLE_VERSION
public static final String BUNDLE_TIMESTAMP
public static final String BUNDLE_BUILD_NUMBER
public static final String NO_BUILD_INFORMATION_AVAILABLE
| Constructor Detail |
|---|
public ManifestInspector()
| Method Detail |
|---|
protected Manifest getManifest(ServletContext servletContext)
throws IOException
IOExceptionprotected BuildInformation getBuildInformation(Manifest manifest)
public String getBuildInformationString(ServletContext context)
throws IOException
IOExceptionprotected boolean isNullOrEmpty(BuildInformation bi)
public String toString(BuildInformation bi)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||