|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quickserver.util.xmlreader.BasicServerConfig org.quickserver.util.xmlreader.QSAdminServerConfig
This class encapsulate the configuration of QSAdminServer.
This class is used by
QuickServer.configQuickServer(org.quickserver.util.xmlreader.QuickServerConfig)
and QuickServer.initService(java.lang.Object[])
method to
initialise QSAdminServer.
Constructor Summary | |
QSAdminServerConfig()
|
Method Summary | |
java.lang.String |
getAuthenticator()
Returns the Authenticator class that handles the authentication of the client. |
java.lang.String |
getBindAddr()
Returns the Ip address binding to. |
java.lang.String |
getClientCommandHandler()
Returns the ClientCommandHandler class that interacts with client sockets. |
java.lang.String |
getCommandPlugin()
Gets the CommandPlugin for QSAdminServer class which plugsin into CommandHandler of QsAdminServer,it will be null if not set. |
java.lang.String |
getCommandShellEnable()
Gets the CommandShellEnable flag for QSAdminServer |
java.lang.String |
getCommandShellPromptName()
Gets the PromptName for QSAdminShell |
long |
getMaxConnection()
Returns the maximum number of client connection allowed. |
java.lang.String |
getName()
Returns the name of the QSAdminServer |
int |
getPort()
Returns the port for the QSAdminServer |
java.lang.String |
getServerAuthenticator()
Deprecated. As of 1.3 use getAuthenticator() |
void |
setAuthenticator(java.lang.String authenticator)
Sets the Authenticator class that handles the authentication of the client. |
void |
setBindAddr(java.lang.String bindAddr)
Sets the Ip address to bind to. |
void |
setClientCommandHandler(java.lang.String handler)
Sets the ClientCommandHandler class that interacts with client sockets. |
void |
setCommandPlugin(java.lang.String plugin)
Set the CommandPlugin for QSAdminServer class which plugs in into CommandHandler of QsAdminServer,it will be null if not set. |
void |
setCommandShellEnable(java.lang.String enable)
Set the CommandShellEnable flag for QSAdminServer XML Tag: <command-shell><enable>true</enable></command-shell> Allowed values = true | false |
void |
setCommandShellPromptName(java.lang.String commandShellPromptName)
Set the PromptName for QSAdminShell XML Tag: <command-shell><prompt-name>true</prompt-name></command-shell> Default values = QSAdmin |
void |
setMaxConnection(long maxConnection)
Sets the maximum number of client connection allowed. |
void |
setName(java.lang.String name)
Sets the name for the QSAdminServer. |
void |
setPort(int port)
Sets the port for the QSAdminServer to listen on. |
void |
setServerAuthenticator(java.lang.String authenticator)
Deprecated. As of 1.3 use setAuthenticator(java.lang.String) |
java.lang.String |
toXML(java.lang.String pad)
Returns XML config of this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QSAdminServerConfig()
Method Detail |
public java.lang.String getName()
getName
in class BasicServerConfig
setName(java.lang.String)
public void setName(java.lang.String name)
setName
in class BasicServerConfig
name
- for the QSAdminServergetName()
public void setPort(int port)
setPort
in class BasicServerConfig
port
- to listen on.getPort()
public int getPort()
getPort
in class BasicServerConfig
setPort(int)
public void setClientCommandHandler(java.lang.String handler)
setClientCommandHandler
in class BasicServerConfig
handler
- the fully qualified name of the class that
implements ClientCommandHandler
getClientCommandHandler()
public java.lang.String getClientCommandHandler()
getClientCommandHandler
in class BasicServerConfig
setClientCommandHandler(java.lang.String)
public void setServerAuthenticator(java.lang.String authenticator)
setAuthenticator(java.lang.String)
setServerAuthenticator
in class BasicServerConfig
authenticator
- the fully qualified name of the class
that implements Authenticator
.getServerAuthenticator()
public void setAuthenticator(java.lang.String authenticator)
setAuthenticator
in class BasicServerConfig
authenticator
- the fully qualified name of the class
that implements Authenticator
.getServerAuthenticator()
public java.lang.String getServerAuthenticator()
getAuthenticator()
getServerAuthenticator
in class BasicServerConfig
setServerAuthenticator(java.lang.String)
public java.lang.String getAuthenticator()
getAuthenticator
in class BasicServerConfig
setAuthenticator(java.lang.String)
public void setBindAddr(java.lang.String bindAddr)
setBindAddr
in class BasicServerConfig
bindAddr
- argument can be used on a multi-homed host for a
QuickServer that will only accept connect requests to one
of its addresses. If not set, it will default accepting
connections on any/all local addresses.getBindAddr()
public java.lang.String getBindAddr()
getBindAddr
in class BasicServerConfig
setBindAddr(java.lang.String)
public void setCommandPlugin(java.lang.String plugin)
public java.lang.String getCommandPlugin()
public void setCommandShellEnable(java.lang.String enable)
true
| false
public java.lang.String getCommandShellEnable()
public void setCommandShellPromptName(java.lang.String commandShellPromptName)
QSAdmin
public java.lang.String getCommandShellPromptName()
public void setMaxConnection(long maxConnection)
setMaxConnection
in class BasicServerConfig
getMaxConnection()
public long getMaxConnection()
getMaxConnection
in class BasicServerConfig
setMaxConnection(long)
public java.lang.String toXML(java.lang.String pad)
|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |