diff options
Diffstat (limited to 'base/console/src/com/netscape/admin/certsrv/task/CMSRequestCert.java')
-rw-r--r-- | base/console/src/com/netscape/admin/certsrv/task/CMSRequestCert.java | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/base/console/src/com/netscape/admin/certsrv/task/CMSRequestCert.java b/base/console/src/com/netscape/admin/certsrv/task/CMSRequestCert.java index 8b3cfef6b..1ef7f87de 100644 --- a/base/console/src/com/netscape/admin/certsrv/task/CMSRequestCert.java +++ b/base/console/src/com/netscape/admin/certsrv/task/CMSRequestCert.java @@ -47,11 +47,11 @@ public class CMSRequestCert extends CGITask { /*========================================================== * variables *==========================================================*/ - private static final String PREFIX = "CGITASK"; + private static final String PREFIX = "CGITASK"; private String mCgiTask = null; // CGI task to call private InstallWizardInfo mWizardInfo; private String mPolicyMsg = null; - + /*========================================================== * constructors *==========================================================*/ @@ -66,18 +66,18 @@ public class CMSRequestCert extends CGITask { Debug.println("CMSRequestCert: initialize()"); _consoleInfo = info.getAdminConsoleInfo(); - // the results coming back from the daemon will be added to the + // the results coming back from the daemon will be added to the // wizard information. mWizardInfo = info; } - + /** - * Collect the data in name value pairs format and then send them to the + * Collect the data in name value pairs format and then send them to the * cgi process. */ public boolean requestCert(Hashtable data) { boolean status = false; // return value - + try { status = run(data); } catch (Exception e) { @@ -89,7 +89,7 @@ public class CMSRequestCert extends CGITask { return mSuccess; } - + /** * the operation is finished after we receive the http stream */ @@ -134,7 +134,7 @@ public class CMSRequestCert extends CGITask { } catch (Exception e) { Debug.println("RequestCert.Exception : " + e.toString()); } - + Debug.println("RequestCert.replyHandler: finished, mSuccess=" + mSuccess); @@ -182,7 +182,7 @@ public class CMSRequestCert extends CGITask { } - + /** * return the value for the given keyword in the reply */ @@ -203,7 +203,7 @@ public class CMSRequestCert extends CGITask { + sValue + " index=" + iIndex); if (sValue != null && !sValue.equals("")) { mWizardInfo.setRequestStatus(sValue); - if (sValue.equals("2") || sValue.equals("3") + if (sValue.equals("2") || sValue.equals("3") || sValue.equals("4")){ //mSuccess = true; } @@ -289,7 +289,7 @@ public class CMSRequestCert extends CGITask { } else if ((iIndex=s.indexOf("/HTML")) != (-1)) mSuccess = true; // no need to parse further - + Debug.println("Parse finished"); } @@ -310,7 +310,7 @@ public class CMSRequestCert extends CGITask { try { mSuccess = false; mFinished = false; - + ByteArrayInputStream data = null; if (args != null && !args.isEmpty()) data = encode(args); @@ -372,11 +372,11 @@ public class CMSRequestCert extends CGITask { (detail.indexOf("Connection timed out") > -1) ) { // java.net.NoRouteToHostException: Connection timed out // double insurance - mErrorMsg = + mErrorMsg = mResource.getString("CGITASK_DIALOG_CMSDOWN_MESSAGE"); } else { // need to determine case by case - mErrorMsg = + mErrorMsg = mResource.getString("CGITASK_DIALOG_CMSDOWN_MESSAGE")+ " java.net.SocketException: " + detail; } @@ -407,7 +407,7 @@ public class CMSRequestCert extends CGITask { } else { // need to determine case by case mErrorMsg = - mResource.getString("CGITASK_DIALOG_CMSDOWN_MESSAGE") + mResource.getString("CGITASK_DIALOG_CMSDOWN_MESSAGE") + " Exception: " + detail; } Debug.println( "Command " + fullCmd + " failed: " + e ); |