|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.quickserver.util.xmlreader.BasicServerConfig
This class encapsulate the basic configuration of QuickServer.
QuickServerConfig
,
QSAdminServerConfig
Constructor Summary | |
BasicServerConfig()
|
Method Summary | |
AccessConstraintConfig |
getAccessConstraintConfig()
Returns Access constraints if present else null . |
AdvancedSettings |
getAdvancedSettings()
Returns the AdvancedSettings for the QuickServer. |
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 |
getClientBinaryHandler()
Returns the ClientBinaryHandler class that interacts with client sockets. |
java.lang.String |
getClientCommandHandler()
Returns the ClientCommandHandler class that interacts with client sockets. |
java.lang.String |
getClientData()
Returns the ClientData class string that carries client data |
java.lang.String |
getClientObjectHandler()
Returns the ClientObjectHandler class that interacts with client sockets. |
java.lang.String |
getClientWriteHandler()
Returns the ClientWriteHandler class that interacts with client sockets. |
boolean |
getCommunicationLogging()
Returns the communication logging flag. |
java.lang.String |
getConsoleLoggingFormatter()
Returns the console log handler level. |
java.lang.String |
getConsoleLoggingLevel()
Returns the console log handler level. |
int |
getMaxAuthTry()
Returns maximum allowed login attempts. |
java.lang.String |
getMaxAuthTryMsg()
Returns message to be displayed when maximum allowed login attempts has reached. |
long |
getMaxConnection()
Returns the maximum number of client connection allowed. |
java.lang.String |
getMaxConnectionMsg()
Returns the message to be sent to any new client connected after maximum client connection has reached. |
java.lang.String |
getName()
Returns the name of the QuickServer |
ObjectPoolConfig |
getObjectPoolConfig()
Returns the ObjectPool Config object. |
int |
getPort()
Returns the port for the QuickServer |
Secure |
getSecure()
Returns Secure setting for QuickServer |
java.lang.String |
getServerAuthenticator()
Deprecated. use getAuthenticator() |
java.lang.String |
getServerBanner()
Returns the Server Banner of the QuickServer |
ServerHooks |
getServerHooks()
Returns ServerHooks if present else null . |
ServerMode |
getServerMode()
Returns the ServerMode for the QuickServer. |
int |
getTimeout()
Returns the Client Socket timeout in milliseconds. |
java.lang.String |
getTimeoutMsg()
Returns timeout message. |
void |
setAccessConstraintConfig(AccessConstraintConfig accessConstraintConfig)
Sets the Access constraints |
void |
setAdvancedSettings(AdvancedSettings advancedSettings)
Sets the AdvancedSettings for the QuickServer. |
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 |
setClientBinaryHandler(java.lang.String handler)
Sets the ClientBinaryHandler class that interacts with client sockets. |
void |
setClientCommandHandler(java.lang.String handler)
Sets the ClientCommandHandler class that interacts with client sockets. |
void |
setClientData(java.lang.String data)
Sets the ClientData class that carries client data. |
void |
setClientObjectHandler(java.lang.String handler)
Sets the ClientObjectHandler class that interacts with client sockets. |
void |
setClientWriteHandler(java.lang.String handler)
Sets the ClientWriteHandler class that interacts with client sockets. |
void |
setCommunicationLogging(boolean enable)
Sets the communication logging flag. |
void |
setConsoleLoggingFormatter(java.lang.String formatter)
Sets the console log handler formatter. |
void |
setConsoleLoggingLevel(java.lang.String level)
Sets the console log handler level. |
void |
setMaxAuthTry(int authTry)
Sets maximum allowed login attempts. |
void |
setMaxAuthTryMsg(java.lang.String msg)
Sets message to be displayed when maximum allowed login attempts has reached. |
void |
setMaxConnection(long maxConnection)
Sets the maximum number of client connection allowed.. |
void |
setMaxConnectionMsg(java.lang.String maxConnectionMsg)
Sets the message to be sent to any new client connected after maximum client connection has reached. |
void |
setName(java.lang.String name)
Sets the name for the QuickServer. |
void |
setObjectPoolConfig(ObjectPoolConfig objectPoolConfig)
Sets the ObjectPool Config object. |
void |
setPort(int port)
Sets the port for the QuickServer to listen on. |
void |
setSecure(Secure secure)
Sets the Secure setting for QuickServer |
void |
setServerAuthenticator(java.lang.String authenticator)
Deprecated. use setAuthenticator(java.lang.String) |
void |
setServerBanner(java.lang.String banner)
Sets the serverBanner for the QuickServer that will be displayed on the standard output [console] when server starts. |
void |
setServerHooks(ServerHooks serverHooks)
Sets the ServerHooks |
void |
setServerMode(ServerMode serverMode)
Sets the ServerMode for the QuickServer. |
void |
setTimeout(int time)
Sets the Client Socket timeout in milliseconds. |
void |
setTimeoutMsg(java.lang.String msg)
Sets timeout message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicServerConfig()
Method Detail |
public java.lang.String getName()
setName(java.lang.String)
public void setName(java.lang.String name)
name
- for the QuickServergetName()
public java.lang.String getServerBanner()
setServerBanner(java.lang.String)
public void setServerBanner(java.lang.String banner)
ClientEventHandler.gotConnected(org.quickserver.net.server.ClientHandler)
XML Tag: <server-banner></server-banner>
banner
- for the QuickServergetServerBanner()
public void setPort(int port)
port
- to listen on.getPort()
public int getPort()
setPort(int)
public void setClientCommandHandler(java.lang.String handler)
handler
- the fully qualified name of the class that
implements ClientCommandHandler
getClientCommandHandler()
public java.lang.String getClientCommandHandler()
setClientCommandHandler(java.lang.String)
public void setServerAuthenticator(java.lang.String authenticator)
setAuthenticator(java.lang.String)
authenticator
- the fully qualified name of the class
that implements Authenticator
.getServerAuthenticator()
public java.lang.String getServerAuthenticator()
getAuthenticator()
setServerAuthenticator(java.lang.String)
public void setAuthenticator(java.lang.String authenticator)
authenticator
- the fully qualified name of the class
that implements Authenticator
.getAuthenticator()
public java.lang.String getAuthenticator()
setAuthenticator(java.lang.String)
public void setClientData(java.lang.String data)
data
- the fully qualified name of the class that
extends ClientData
.getClientData()
public java.lang.String getClientData()
ClientData
.setClientData(java.lang.String)
public void setTimeout(int time)
time
- client socket timeout in milliseconds.getTimeout()
public int getTimeout()
setTimeout(int)
public void setMaxAuthTry(int authTry)
public int getMaxAuthTry()
public void setMaxAuthTryMsg(java.lang.String msg)
getMaxAuthTryMsg()
public java.lang.String getMaxAuthTryMsg()
getMaxAuthTryMsg()
public void setTimeoutMsg(java.lang.String msg)
getTimeoutMsg()
public java.lang.String getTimeoutMsg()
setTimeoutMsg(java.lang.String)
public void setMaxConnection(long maxConnection)
getMaxConnection()
public long getMaxConnection()
setMaxConnection(long)
public void setMaxConnectionMsg(java.lang.String maxConnectionMsg)
-ERR Server Busy. Max Connection Reached
getMaxConnectionMsg()
public java.lang.String getMaxConnectionMsg()
setMaxConnectionMsg(java.lang.String)
public void setBindAddr(java.lang.String bindAddr)
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.
XML Tag: <bind-address></bind-address>getBindAddr()
public java.lang.String getBindAddr()
setBindAddr(java.lang.String)
public void setClientObjectHandler(java.lang.String handler)
handler
- object the fully qualified name of the class that
implements ClientObjectHandler
getClientObjectHandler()
public java.lang.String getClientObjectHandler()
setClientObjectHandler(java.lang.String)
public void setConsoleLoggingLevel(java.lang.String level)
level
- like INFO, FINE, CONFIGpublic java.lang.String getConsoleLoggingLevel()
public void setConsoleLoggingFormatter(java.lang.String formatter)
formatter
- fully qualified name of the class that
implements Formatter
public java.lang.String getConsoleLoggingFormatter()
public void setObjectPoolConfig(ObjectPoolConfig objectPoolConfig)
public ObjectPoolConfig getObjectPoolConfig()
public void setCommunicationLogging(boolean enable)
XML Tag: <communication-logging><enable>true</enable></communication-logging>
Allowed values = true
| false
public boolean getCommunicationLogging()
setCommunicationLogging(boolean)
public void setAccessConstraintConfig(AccessConstraintConfig accessConstraintConfig)
public AccessConstraintConfig getAccessConstraintConfig()
null
.
public void setServerHooks(ServerHooks serverHooks)
public ServerHooks getServerHooks()
null
.
public void setSecure(Secure secure)
public Secure getSecure()
public void setClientBinaryHandler(java.lang.String handler)
handler
- the fully qualified name of the class that
implements ClientBinaryHandler
getClientBinaryHandler()
public java.lang.String getClientBinaryHandler()
setClientBinaryHandler(java.lang.String)
public void setServerMode(ServerMode serverMode)
serverMode
- ServerMode object.getServerMode()
public ServerMode getServerMode()
setServerMode(org.quickserver.util.xmlreader.ServerMode)
public void setClientWriteHandler(java.lang.String handler)
handler
- the fully qualified name of the class that
implements ClientWriteHandler
getClientWriteHandler()
public java.lang.String getClientWriteHandler()
setClientWriteHandler(java.lang.String)
public void setAdvancedSettings(AdvancedSettings advancedSettings)
advancedSettings
- AdvancedSettings object.getAdvancedSettings()
public AdvancedSettings getAdvancedSettings()
setAdvancedSettings(org.quickserver.util.xmlreader.AdvancedSettings)
|
QuickServer v1.4.5 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |