|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.authentication.plugins.demo.Manager
This example pops up a GUI, and a user has to confirm all logins and authorize messages manually.
| Field Summary | |
private PluginGUI |
frame
|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private static java.lang.String |
ME
|
private boolean |
packFrame
|
private java.util.Hashtable |
sessions
|
private static java.lang.String |
TYPE
|
private static java.lang.String |
VERSION
|
| Constructor Summary | |
Manager()
|
|
| Method Summary | |
(package private) void |
changeSecretSessionId(java.lang.String oldSessionId,
java.lang.String newSessionId)
|
Global |
getGlobal()
|
(package private) PluginGUI |
getGUI()
|
I_Session |
getSessionById(java.lang.String id)
Get the I_Session which corresponds to the given sessionId |
(package private) Subject |
getSubject(java.lang.String name)
|
java.lang.String |
getType()
|
java.lang.String |
getVersion()
|
void |
init(Global glob,
PluginInfo pluginInfo)
This method is called by the PluginManager (enforced by I_Plugin). |
void |
releaseSession(java.lang.String sessionId,
java.lang.String qos_literal)
Releases a reserved I_Session. |
I_Session |
reserveSession(java.lang.String sessionId)
The session handling. |
void |
shutdown()
Cleans up the resource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String ME
private Global glob
private static java.util.logging.Logger log
private static final java.lang.String TYPE
private static final java.lang.String VERSION
private java.util.Hashtable sessions
private boolean packFrame
private PluginGUI frame
| Constructor Detail |
public Manager()
| Method Detail |
public void init(Global glob,
PluginInfo pluginInfo)
init in interface I_PluginI_Plugin.init(org.xmlBlaster.util.Global,org.xmlBlaster.util.plugin.PluginInfo)public java.lang.String getType()
getType in interface I_Pluginpublic java.lang.String getVersion()
getVersion in interface I_Pluginpublic final Global getGlobal()
public I_Session reserveSession(java.lang.String sessionId)
I_Managerorg.xmlBlaster.authentication.Authenticate.connect(...)
and login(...) calls this method to get a new I_Session
and bind it to the session.
reserveSession in interface I_Manager
public void releaseSession(java.lang.String sessionId,
java.lang.String qos_literal)
I_Manager
releaseSession in interface I_Manager
void changeSecretSessionId(java.lang.String oldSessionId,
java.lang.String newSessionId)
throws XmlBlasterException
XmlBlasterExceptionpublic I_Session getSessionById(java.lang.String id)
getSessionById in interface I_Manager
Subject getSubject(java.lang.String name)
throws XmlBlasterException
XmlBlasterExceptionPluginGUI getGUI()
public void shutdown()
throws XmlBlasterException
I_Plugin
shutdown in interface I_PluginXmlBlasterException - if an exception occurs. The exception is
handled by the RunLevelManager depending on how the plugin has been
configured with the action:
<action do='STOP' onShutdownRunlevel='2' sequence='5'
onFail='resource.configuration.pluginFailed'>
If onFail is defined to something, the RunLevelManager will stop.
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||