|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.setup.CmsSetupTests
public class CmsSetupTests
Runs various tests to give users infos about whether their system is compatible to OpenCms.
| Constructor Summary | |
|---|---|
CmsSetupTests()
Creates a new setup test suite. |
|
| Method Summary | |
|---|---|
protected boolean |
compareJDKVersions(String usedJDK,
String requiredJDK)
Checks if the used JDK is a higher version than the required JDK. |
CmsSetupBean |
getSetupBean()
Returns the CmsSetup bean of the setup wizard. |
List |
getTestResults()
Returns the test results. |
protected boolean |
hasSupportedServletEngine(String thisEngine,
String[] supportedEngines)
Checks if the used servlet engine is part of the servlet engines OpenCms supports. |
boolean |
isGreen()
Returns true, if the conditions in all testes were fulfilled. |
boolean |
isRed()
Returns true if one of the tests found a violated condition. |
boolean |
isYellow()
Returns true if one of the tests found a questionable condition. |
void |
runTests(PageContext pageContext,
CmsSetupBean setupBean)
Runs all tests. |
protected void |
setGreen()
Sets if the conditions in all testes were fulfilled. |
protected void |
setRed()
Sets if one of the tests found a violated condition. |
protected void |
setYellow()
Sets if one of the tests found a questionable condition. |
void |
testJdkVersion()
Tests the version of the JDK. |
void |
testOperatingSystem()
Tests the operating system. |
void |
testServletEngine()
Tests the servlet engine. |
void |
testWarFileUnpacked()
Tests if the OpenCms WAR file is unpacked. |
void |
testXercesVersion()
Test for the Xerces version. |
protected int |
unsupportedServletEngine(String thisEngine,
String[] unsupportedEngines)
Checks if the used servlet engine is part of the servlet engines OpenCms does NOT support. |
protected void |
writeVersionInfo(String thisEngine,
String usedJDK,
String basePath)
Writes the version info of the used servlet engine and the used JDK to the version.txt. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsSetupTests()
| Method Detail |
|---|
public CmsSetupBean getSetupBean()
public List getTestResults()
public boolean isGreen()
public boolean isRed()
public boolean isYellow()
public void runTests(PageContext pageContext,
CmsSetupBean setupBean)
pageContext - the page context of the JSP pagesetupBean - the CmsSetup bean of the setup wizardpublic void testJdkVersion()
public void testOperatingSystem()
public void testServletEngine()
public void testWarFileUnpacked()
public void testXercesVersion()
protected boolean compareJDKVersions(String usedJDK,
String requiredJDK)
usedJDK - The JDK version in userequiredJDK - The required JDK version
protected boolean hasSupportedServletEngine(String thisEngine,
String[] supportedEngines)
thisEngine - The servlet engine in usesupportedEngines - All known servlet engines OpenCms supports
protected void setGreen()
protected void setRed()
protected void setYellow()
protected int unsupportedServletEngine(String thisEngine,
String[] unsupportedEngines)
thisEngine - the servlet engine in useunsupportedEngines - all known servlet engines OpenCms does NOT support
protected void writeVersionInfo(String thisEngine,
String usedJDK,
String basePath)
thisEngine - The servlet engine in useusedJDK - The JDK version in usebasePath - the OpenCms base path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||