QuickServer
v1.4.7

org.quickserver.util.xmlreader
Class QuickServerConfig

java.lang.Object
  extended byorg.quickserver.util.xmlreader.BasicServerConfig
      extended byorg.quickserver.util.xmlreader.QuickServerConfig
All Implemented Interfaces:
java.io.Serializable

public class QuickServerConfig
extends BasicServerConfig

This class encapsulate the configuration of QuickServer.

This is used by QuickServer.configQuickServer(org.quickserver.util.xmlreader.QuickServerConfig) and QuickServer.initService(java.lang.Object[]) method to initialise QuickServer.

Since:
1.2
Author:
Akshathkumar Shetty
See Also:
Serialized Form

Constructor Summary
QuickServerConfig()
           
 
Method Summary
 ApplicationConfiguration getApplicationConfiguration()
          Returns ApplicationConfiguration
 java.lang.String getApplicationJarPath()
          Returns the applications jar/s path.
 java.lang.String getConfigFile()
          Returns the file path of the file that loaded the configuration file.
 DBObjectPoolConfig getDBObjectPoolConfig()
          Returns DBObjectPoolConfig
 InitServerHooks getInitServerHooks()
          Returns the InitServerHooks.
 QSAdminServerConfig getQSAdminServerConfig()
          Returns QSAdminServer configuration.
 java.lang.String getSecurityManagerClass()
          Returns the SecurityManager class
 void setApplicationConfiguration(ApplicationConfiguration applicationConfiguration)
          Sets the Application Configuration.
 void setApplicationJarPath(java.lang.String applicationJarPath)
          Sets the applications jar/s path.
protected  void setConfigFile(java.lang.String fileName)
          Sets the file path of the file that loaded the config from.
 void setDBObjectPoolConfig(DBObjectPoolConfig dDObjectPoolConfig)
          Sets the DBObjectPoolConfig XML Tag: <object-pool></object-pool>
 void setInitServerHooks(InitServerHooks initServerHooks)
          Sets the InitServerHooks.
 void setQSAdminServerConfig(QSAdminServerConfig config)
          Sets the QSAdminServer configuration.
 void setSecurityManagerClass(java.lang.String securityManagerClass)
          Sets the SecurityManager class XML Tag: <security-manager-class></security-manager-class>
 java.lang.String toString()
           
 java.lang.String toXML(java.lang.String pad)
          Returns XML config of this class.
 
Methods inherited from class org.quickserver.util.xmlreader.BasicServerConfig
getAccessConstraintConfig, getAdvancedSettings, getAuthenticator, getBindAddr, getClientAuthenticationHandler, getClientBinaryHandler, getClientCommandHandler, getClientData, getClientEventHandler, getClientExtendedEventHandler, getClientObjectHandler, getClientWriteHandler, getCommunicationLogging, getConsoleLoggingFormatter, getConsoleLoggingLevel, getDefaultDataMode, getMaxAuthTry, getMaxAuthTryMsg, getMaxConnection, getMaxConnectionMsg, getName, getObjectPoolConfig, getPort, getSecure, getServerBanner, getServerHooks, getServerMode, getTimeout, getTimeoutMsg, setAccessConstraintConfig, setAdvancedSettings, setAuthenticator, setAuthenticator, setBindAddr, setClientAuthenticationHandler, setClientAuthenticationHandler, setClientBinaryHandler, setClientBinaryHandler, setClientCommandHandler, setClientCommandHandler, setClientData, setClientData, setClientEventHandler, setClientEventHandler, setClientExtendedEventHandler, setClientExtendedEventHandler, setClientObjectHandler, setClientObjectHandler, setClientWriteHandler, setClientWriteHandler, setCommunicationLogging, setConsoleLoggingFormatter, setConsoleLoggingLevel, setDefaultDataMode, setMaxAuthTry, setMaxAuthTryMsg, setMaxConnection, setMaxConnectionMsg, setName, setObjectPoolConfig, setPort, setSecure, setServerBanner, setServerHooks, setServerMode, setTimeout, setTimeoutMsg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuickServerConfig

public QuickServerConfig()
Method Detail

setQSAdminServerConfig

public void setQSAdminServerConfig(QSAdminServerConfig config)
Sets the QSAdminServer configuration. XML Tag: <qsadmin-server></qsadmin-server>


getQSAdminServerConfig

public QSAdminServerConfig getQSAdminServerConfig()
Returns QSAdminServer configuration.


setDBObjectPoolConfig

public void setDBObjectPoolConfig(DBObjectPoolConfig dDObjectPoolConfig)
Sets the DBObjectPoolConfig XML Tag: <object-pool></object-pool>

Since:
1.3

getDBObjectPoolConfig

public DBObjectPoolConfig getDBObjectPoolConfig()
Returns DBObjectPoolConfig

Since:
1.3

setApplicationConfiguration

public void setApplicationConfiguration(ApplicationConfiguration applicationConfiguration)
Sets the Application Configuration. This can be used by application to store its configuration information. XML Tag: <application-configuration></application-configuration>

Since:
1.3.2

getApplicationConfiguration

public ApplicationConfiguration getApplicationConfiguration()
Returns ApplicationConfiguration

Since:
1.3.2

setSecurityManagerClass

public void setSecurityManagerClass(java.lang.String securityManagerClass)
Sets the SecurityManager class XML Tag: <security-manager-class></security-manager-class>

Parameters:
securityManagerClass - className the fully qualified name of the class that extends SecurityManager.
Since:
1.3.3
See Also:
getSecurityManagerClass()

getSecurityManagerClass

public java.lang.String getSecurityManagerClass()
Returns the SecurityManager class

Since:
1.3.3
See Also:
setSecurityManagerClass(java.lang.String)

setConfigFile

protected void setConfigFile(java.lang.String fileName)
Sets the file path of the file that loaded the config from.

Since:
1.3.3

getConfigFile

public java.lang.String getConfigFile()
Returns the file path of the file that loaded the configuration file.

Since:
1.3.3

setApplicationJarPath

public void setApplicationJarPath(java.lang.String applicationJarPath)
Sets the applications jar/s path. This can be either absolute or relative(to config file) path to the jar file or the directory containing the jars needed by the application.

Since:
1.3.3
See Also:
getApplicationJarPath()

getApplicationJarPath

public java.lang.String getApplicationJarPath()
Returns the applications jar/s path. This can be either absolute or relative(to config file) path to the jar file or the directory containing the jars needed by the application.

Since:
1.3.3
See Also:
setApplicationJarPath(java.lang.String)

setInitServerHooks

public void setInitServerHooks(InitServerHooks initServerHooks)
Sets the InitServerHooks.

Since:
1.4
See Also:
getInitServerHooks()

getInitServerHooks

public InitServerHooks getInitServerHooks()
Returns the InitServerHooks.

Since:
1.4
See Also:
setInitServerHooks(org.quickserver.util.xmlreader.InitServerHooks)

toXML

public java.lang.String toXML(java.lang.String pad)
Returns XML config of this class.

Since:
1.3

toString

public java.lang.String toString()

QuickServer
v1.4.7

Copyright © 2003-2006 QuickServer.org