Class ServerConfiguration


  • public class ServerConfiguration
    extends Object
    The type Server configuration.
    • Field Detail

      • CONFIG_DS_CACHE_DIR

        public static final String CONFIG_DS_CACHE_DIR
        The constant CONFIG_DS_CACHE_DIR.
        See Also:
        Constant Field Values
      • CONFIG_BIND_ADDRESS

        public static final String CONFIG_BIND_ADDRESS
        The constant CONFIG_BIND_ADDRESS.
        See Also:
        Constant Field Values
      • CONFIG_SSL_KEY_STORE_FILE

        public static final String CONFIG_SSL_KEY_STORE_FILE
        The constant CONFIG_SSL_KEY_STORE_FILE.
        See Also:
        Constant Field Values
      • CONFIG_SSL_KEY_STORE_PW

        public static final String CONFIG_SSL_KEY_STORE_PW
        The constant CONFIG_SSL_KEY_STORE_PW.
        See Also:
        Constant Field Values
      • CONFIG_MODE_FLATTENING

        public static final String CONFIG_MODE_FLATTENING
        The constant CONFIG_MODE_FLATTENING.
        See Also:
        Constant Field Values
      • CONFIG_RESPONSE_MAX_SIZE_LIMIT

        public static final String CONFIG_RESPONSE_MAX_SIZE_LIMIT
        The constant CONFIG_RESPONSE_MAX_SIZE_LIMIT.
        See Also:
        Constant Field Values
      • CONFIG_RESPONSE_MAX_TIME_LIMIT

        public static final String CONFIG_RESPONSE_MAX_TIME_LIMIT
        The constant CONFIG_RESPONSE_MAX_TIME_LIMIT.
        See Also:
        Constant Field Values
      • CONFIG_CONNECTION_BACK_LOG

        public static final String CONFIG_CONNECTION_BACK_LOG
        The constant CONFIG_CONNECTION_BACK_LOG.
        See Also:
        Constant Field Values
      • CONFIG_CONNECTION_ACTIVE_THREADS

        public static final String CONFIG_CONNECTION_ACTIVE_THREADS
        The constant CONFIG_CONNECTION_ACTIVE_THREADS.
        See Also:
        Constant Field Values
      • CONFIG_DIRECTORY_BACKEND_PERMANENT

        public static final String CONFIG_DIRECTORY_BACKEND_PERMANENT
        The constant CONFIG_DIRECTORY_BACKEND_PERMANENT.
        See Also:
        Constant Field Values
      • CONFIG_DIRECTORY_BACKEND_SESSION

        public static final String CONFIG_DIRECTORY_BACKEND_SESSION
        The constant CONFIG_DIRECTORY_BACKEND_SESSION.
        See Also:
        Constant Field Values
      • CONFIG_ABBREVIATE_SN_ATTRIBUTE

        public static final String CONFIG_ABBREVIATE_SN_ATTRIBUTE
        The constant CONFIG_ABBREVIATE_SN_ATTRIBUTE.
        See Also:
        Constant Field Values
      • CONFIG_ABBREVIATE_GN_ATTRIBUTE

        public static final String CONFIG_ABBREVIATE_GN_ATTRIBUTE
        The constant CONFIG_ABBREVIATE_GN_ATTRIBUTE.
        See Also:
        Constant Field Values
      • CONFIG_BASE_DN_DESCRIPTION

        public static final String CONFIG_BASE_DN_DESCRIPTION
        The constant CONFIG_BASE_DN_DESCRIPTION.
        See Also:
        Constant Field Values
      • CONFIG_BASE_DN_GROUPS_DESCRIPTION

        public static final String CONFIG_BASE_DN_GROUPS_DESCRIPTION
        The constant CONFIG_BASE_DN_GROUPS_DESCRIPTION.
        See Also:
        Constant Field Values
      • CONFIG_BASE_DN_USERS_DESCRIPTION

        public static final String CONFIG_BASE_DN_USERS_DESCRIPTION
        The constant CONFIG_BASE_DN_USERS_DESCRIPTION.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ServerConfiguration

        public ServerConfiguration​(Properties serverProperties,
                                   Properties backendProperties)
        Instantiates a new server configuration.
        Parameters:
        serverProperties - the server properties
        backendProperties - the backend properties
    • Method Detail

      • getBackendProperties

        public Properties getBackendProperties()
        Gets the backend properties.
        Returns:
        the properties
      • getDsCacheDir

        public Path getDsCacheDir()
        Gets cache dir.
        Returns:
        the cache dir
      • getHost

        public String getHost()
        Gets host.
        Returns:
        the host
      • getPort

        public int getPort()
        Gets port.
        Returns:
        the port
      • isSslEnabled

        public boolean isSslEnabled()
        Is SSL enabled boolean.
        Returns:
        the boolean
      • getKeyStoreFile

        public Path getKeyStoreFile()
        Gets key store file.
        Returns:
        the key store file
      • getKeyStorePassword

        public String getKeyStorePassword()
        Gets key store password.
        Returns:
        the key store password
      • isFlatteningEnabled

        public boolean isFlatteningEnabled()
        Is flattening boolean.
        Returns:
        the boolean
      • getResponseMaxSizeLimit

        public int getResponseMaxSizeLimit()
        Gets the maximum number of entries for responses.
        Returns:
        the maximum number of entities
      • getResponseMaxTimeLimit

        public int getResponseMaxTimeLimit()
        Gets the maximum time in seconds before an operation is aborted.
        Returns:
        the maximum number of entities
      • getConnectionBackLog

        public int getConnectionBackLog()
        Gets the number of incoming requests queued when all the threads are busy.
        Returns:
        the maximum number of entities
      • getConnectionActiveThreads

        public int getConnectionActiveThreads()
        Gets the number of threads to use in the executor to handle the incoming requests.
        Returns:
        the maximum number of entities
      • getPermanentDirectoryBackendClasses

        public List<String> getPermanentDirectoryBackendClasses()
        Gets the defined directory backend classes used as permanent instances.
        Returns:
        the list of directory backend classes
      • getSessionDirectoryBackendClasses

        public List<String> getSessionDirectoryBackendClasses()
        Gets the defined directory backend classes used additional sessions.
        Returns:
        the list of directory backend classes
      • isAbbreviateSnAttribute

        public boolean isAbbreviateSnAttribute()
        Gets the boolean flag for abbreviation of SN attribute.
        Returns:
        the boolean
      • isAbbreviateGnAttribute

        public boolean isAbbreviateGnAttribute()
        Gets the boolean flag for abbreviation of GN attribute.
        Returns:
        the boolean
      • getBaseDnDescription

        public String getBaseDnDescription()
        Gets base DN description.
        Returns:
        the base dn description
      • getBaseDnGroupsDescription

        public String getBaseDnGroupsDescription()
        Gets base DN groups description.
        Returns:
        the base dn groups description
      • getBaseDnUsersDescription

        public String getBaseDnUsersDescription()
        Gets base DN users description.
        Returns:
        the base dn users description