|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.nikhef.slcshttps.gui.SURFCAPopupComm
public class SURFCAPopupComm
Implementation of a SURFCAHttps.SURFCACommunicator
using popup windows instead of
the default SURFCAHttps.StdioComm
. See SURFCAHttps
for
details how this implementation is/can be used by setting the right system
property, by choosing the right constructor or set using method SURFCAHttps.setCommunicator(String)
.
SURFCAHttps.SURFCACommunicator
,
SURFCAHttps.SURFCAHttps(SURFCACommunicator)
Field Summary | |
---|---|
private String |
DOWNLOADTEXT
Text shown when the user is about to download his certificate. |
Constructor Summary | |
---|---|
SURFCAPopupComm()
|
Method Summary | |
---|---|
void |
error(String text,
Exception e)
Called upon error, it opens an error popup window with an error message using the text and Throwable.getMessage() from e (if
non-null). |
void |
postBrowse()
Called just after the webbrowser is started, prints a text in a popup window and waits until the user confirms he is ready with the webbrowser. |
void |
preBrowse()
Called just before the webbrowser is started, prints an informative text in a popup window and waits until the user confirms he is ready to start the browser. |
boolean |
retry(String text,
Exception e)
Identical to error(String,Exception) except that it is called
when an error occurs that might be fixed by the user. |
void |
success(String text)
It is called when interaction has been successful and the certificate stored, when SURFCAHttps.getShowSuccess() equals
true , it will then show a confirmation popup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final String DOWNLOADTEXT
Constructor Detail |
---|
public SURFCAPopupComm()
Method Detail |
---|
public void preBrowse() throws IOException
preBrowse
in interface SURFCAHttps.SURFCACommunicator
IOException
- when poup window is closed prematurely.public void postBrowse() throws IOException
postBrowse
in interface SURFCAHttps.SURFCACommunicator
IOException
- when popup window is closed prematurely.public void error(String text, Exception e)
Throwable.getMessage()
from e
(if
non-null).
error
in interface SURFCAHttps.SURFCACommunicator
text
- String
- some descriptive text.e
- Exception
that caused the error (if any).GraphTools.errorPopup(String,Exception)
public boolean retry(String text, Exception e)
error(String,Exception)
except that it is called
when an error occurs that might be fixed by the user. (S)He can then
choose to retry.
retry
in interface SURFCAHttps.SURFCACommunicator
text
- String
- some text.e
- Exception
that caused the error (if any).
error(String,Exception)
,
GraphTools.retryPopup(String,Exception)
public void success(String text)
SURFCAHttps.getShowSuccess()
equals
true
, it will then show a confirmation popup.
success
in interface SURFCAHttps.SURFCACommunicator
text
- String
- text describing the certificate
subject.GraphTools.successPopup(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
nl.nikhef.slcshttps | Mischa Sallé - msalle(AT)nikhef.nl |