Modifier and Type | Field and Description |
---|---|
static String |
secret
Random secret used by JVM to allow SSO.
|
Constructor and Description |
---|
AdminConsolePlugin()
Create a Jetty module.
|
Modifier and Type | Method and Description |
---|---|
void |
destroyPlugin()
Destroys the plugin.
|
int |
getAdminSecurePort()
Returns the SSL port on which the admin console is current operating.
|
int |
getAdminUnsecurePort()
Returns the non-SSL port on which the admin console is currently operating.
|
String |
getBindInterface()
Returns null if the admin console will be available in all network interfaces of this machine
or a String representing the only interface where the admin console will be available.
|
org.eclipse.jetty.server.handler.ContextHandlerCollection |
getContexts()
Returns the collection of Jetty contexts used in the admin console.
|
void |
initializePlugin(PluginManager manager,
File pluginDir)
Initializes the plugin.
|
boolean |
isRestartNeeded()
Returns true if the Jetty server needs to be restarted.
|
void |
restart()
Restart the admin console (and it's HTTP server) without restarting the plugin.
|
protected void |
shutdown()
Shuts down the Jetty server.
|
protected void |
startup()
Starts the Jetty instance.
|
public static final String secret
protected void startup()
protected void shutdown()
public void initializePlugin(PluginManager manager, File pluginDir)
Plugin
initializePlugin
in interface Plugin
manager
- the plugin manager.pluginDir
- the directory where the plugin is located.public void destroyPlugin()
Plugin
Implementations of this method must release all resources held by the plugin such as file handles, database or network connections, and references to core Openfire classes. In other words, a garbage collection executed after this method is called must be able to clean up all plugin classes.
destroyPlugin
in interface Plugin
public boolean isRestartNeeded()
public String getBindInterface()
public int getAdminUnsecurePort()
public int getAdminSecurePort()
public org.eclipse.jetty.server.handler.ContextHandlerCollection getContexts()
ContextHandlerCollection contexts = ((AdminConsolePlugin)pluginManager.getPlugin("admin")).getContexts(); context = new WebAppContext(SOME_DIRECTORY, "/CONTEXT_NAME"); contexts.addHandler(context); context.setWelcomeFiles(new String[]{"index.jsp"}); context.start();
public void restart()
Copyright © 2003–2019 Ignite Realtime. All rights reserved.