public class QSAdminServer
extends java.lang.Object
This is can be used to setup a admin server to a
QuickServer
, it is implemented
as a QuickServer. QuickServer
comes with a very use full method
QuickServer.startQSAdminServer(int, java.lang.String)
that
creates QSAdminServer associated with itself and starts it at
the specified port or the default port 9877.
startServer()
Constructor and Description |
---|
QSAdminServer(QuickServer controlServer)
Creates QSAdminServer with default settings.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandPlugin()
Returns the
CommandPlugin class which plugs into
CommandHandler of QsAdminServer,it will be null if not set. |
QuickServer |
getControlServer()
Returns the QuickServer object that is being
controled by this QSAdminServer.
|
java.lang.String |
getPromptName()
Gets the prompt name for QSAdminShell
|
QuickServer |
getServer()
Returns the QuickServer object that created it.
|
static java.lang.String |
getVersion() |
boolean |
isShellEnable()
Returns flag indicated if command shell is enabled.
|
void |
setAuthenticator(java.lang.String authenticator)
Deprecated.
since 1.4.6 use setClientAuthenticationHandler
|
void |
setClientAuthenticationHandler(java.lang.String authenticator)
Sets the ClientAuthenticationHandler class that handles the
authentication of a client, if null uses default
Authenticator . |
void |
setCommandPlugin(java.lang.String pluginClass)
Sets the
CommandPlugin class which plugs into
CommandHandler of QsAdminServer. |
void |
setPromptName(java.lang.String promptName)
Set the prompt name for QSAdminShell
Default values =
QSAdmin |
void |
setShellEnable(boolean flag)
Sets the flag indicated if command shell is enabled.
|
void |
startServer()
Starts the QSAdminServer.
|
void |
startServer(int port)
Starts the QSAdminServer.
|
public QSAdminServer(QuickServer controlServer)
127.0.0.1
.controlServer
- QuickServer to control.public void setAuthenticator(java.lang.String authenticator)
Authenticator
.authenticator
- full class name of the class that
implements Authenticator
.public void setClientAuthenticationHandler(java.lang.String authenticator)
Authenticator
.authenticator
- full class name of the class that
implements ClientAuthenticationHandler
.public void startServer(int port) throws AppException
port
- to run QSAdminServer onAppException
public void startServer() throws AppException
POS 0 = QuickServer that is controled. POS 1 = Command Plugin if present for QSAdminServer's CommandHandler POS 3 = QSAdminServer own reference object.
AppException
public QuickServer getServer()
public QuickServer getControlServer()
public void setCommandPlugin(java.lang.String pluginClass) throws java.lang.Exception
CommandPlugin
class which plugs into
CommandHandler
of QsAdminServer. It should be set
before QSAdminServer is started. Or QSAdminServer must be
restarted.pluginClass
- the fully qualified name of the
desired class that implements CommandPlugin
if
- could not load the classjava.lang.Exception
public java.lang.String getCommandPlugin()
CommandPlugin
class which plugs into
CommandHandler
of QsAdminServer,it will be null if not set.public static java.lang.String getVersion()
public boolean isShellEnable()
public void setShellEnable(boolean flag)
public void setPromptName(java.lang.String promptName)
QSAdmin
public java.lang.String getPromptName()
Copyright © 2003-2014 QuickServer.org