.. java:import:: java.io BufferedInputStream .. java:import:: java.io File .. java:import:: java.io FileInputStream .. java:import:: java.io IOException .. java:import:: java.net URL .. java:import:: java.util ArrayList .. java:import:: java.util Arrays .. java:import:: java.util Collections .. java:import:: java.util Comparator .. java:import:: java.util Properties .. java:import:: org.caosdb.server.query Query .. java:import:: org.caosdb.server.utils AbstractObservable .. java:import:: org.caosdb.server.utils Observable .. java:import:: org.caosdb.server.utils Observer .. java:import:: org.slf4j Logger .. java:import:: org.slf4j LoggerFactory ServerProperties ================ .. java:package:: org.caosdb.server :noindex: .. java:type:: public class ServerProperties extends Properties implements Observable Fields ------ KEY_ADMIN_EMAIL ^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_ADMIN_EMAIL :outertype: ServerProperties KEY_ADMIN_NAME ^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_ADMIN_NAME :outertype: ServerProperties KEY_AUTHTOKEN_CONFIG ^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_AUTHTOKEN_CONFIG :outertype: ServerProperties KEY_AUTH_OPTIONAL ^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_AUTH_OPTIONAL :outertype: ServerProperties KEY_BASE_PATH ^^^^^^^^^^^^^ .. java:field:: public static final String KEY_BASE_PATH :outertype: ServerProperties KEY_BUGTRACKER_URI ^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_BUGTRACKER_URI :outertype: ServerProperties KEY_BUILD_TIMESTAMP ^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_BUILD_TIMESTAMP :outertype: ServerProperties KEY_CACHE_CONF_LOC ^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_CACHE_CONF_LOC :outertype: ServerProperties KEY_CACHE_DISABLE ^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_CACHE_DISABLE :outertype: ServerProperties KEY_CERTIFICATES_KEY_PASSWORD ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_CERTIFICATES_KEY_PASSWORD :outertype: ServerProperties KEY_CERTIFICATES_KEY_STORE_PASSWORD ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_CERTIFICATES_KEY_STORE_PASSWORD :outertype: ServerProperties KEY_CERTIFICATES_KEY_STORE_PATH ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_CERTIFICATES_KEY_STORE_PATH :outertype: ServerProperties KEY_CHECK_ENTITY_ACL_ROLES_MODE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_CHECK_ENTITY_ACL_ROLES_MODE :outertype: ServerProperties KEY_CHOWN_SCRIPT ^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_CHOWN_SCRIPT :outertype: ServerProperties KEY_CONTEXT_ROOT ^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_CONTEXT_ROOT :outertype: ServerProperties KEY_DROP_OFF_BOX ^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_DROP_OFF_BOX :outertype: ServerProperties KEY_FILE_MESSAGES ^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_FILE_MESSAGES :outertype: ServerProperties KEY_FILE_POLICY ^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_FILE_POLICY :outertype: ServerProperties KEY_FILE_SYSTEM_ROOT ^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_FILE_SYSTEM_ROOT :outertype: ServerProperties KEY_FIND_QUERY_DEFAULT_ROLE ^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_FIND_QUERY_DEFAULT_ROLE :outertype: ServerProperties KEY_GLOBAL_ENTITY_PERMISSIONS_FILE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_GLOBAL_ENTITY_PERMISSIONS_FILE :outertype: ServerProperties KEY_GRPC_RESPONSE_LOG_FORMAT ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_GRPC_RESPONSE_LOG_FORMAT :outertype: ServerProperties KEY_GRPC_SERVER_PORT_HTTP ^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_GRPC_SERVER_PORT_HTTP :outertype: ServerProperties KEY_GRPC_SERVER_PORT_HTTPS ^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_GRPC_SERVER_PORT_HTTPS :outertype: ServerProperties KEY_HTTPS_DISABLED_CIPHER_SUITES ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_HTTPS_DISABLED_CIPHER_SUITES :outertype: ServerProperties KEY_HTTPS_DISABLED_PROTOCOLS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_HTTPS_DISABLED_PROTOCOLS :outertype: ServerProperties KEY_HTTPS_ENABLED_CIPHER_SUITES ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_HTTPS_ENABLED_CIPHER_SUITES :outertype: ServerProperties KEY_HTTPS_ENABLED_PROTOCOLS ^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_HTTPS_ENABLED_PROTOCOLS :outertype: ServerProperties KEY_INITIAL_CONNECTIONS ^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_INITIAL_CONNECTIONS :outertype: ServerProperties KEY_INSERT_FILES_IN_DIR_ALLOWED_DIRS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_INSERT_FILES_IN_DIR_ALLOWED_DIRS :outertype: ServerProperties KEY_JOB_RULES_CONFIG ^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_JOB_RULES_CONFIG :outertype: ServerProperties KEY_MAIL_HANDLER_CLASS ^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_MAIL_HANDLER_CLASS :outertype: ServerProperties KEY_MAIL_TO_FILE_HANDLER_LOC ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_MAIL_TO_FILE_HANDLER_LOC :outertype: ServerProperties KEY_MAX_CONNECTIONS ^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_MAX_CONNECTIONS :outertype: ServerProperties KEY_MYSQL_DATABASE_NAME ^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_MYSQL_DATABASE_NAME :outertype: ServerProperties KEY_MYSQL_HOST ^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_MYSQL_HOST :outertype: ServerProperties KEY_MYSQL_PORT ^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_MYSQL_PORT :outertype: ServerProperties KEY_MYSQL_SCHEMA_VERSION ^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_MYSQL_SCHEMA_VERSION :outertype: ServerProperties KEY_MYSQL_USER_NAME ^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_MYSQL_USER_NAME :outertype: ServerProperties KEY_MYSQL_USER_PASSWORD ^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_MYSQL_USER_PASSWORD :outertype: ServerProperties KEY_NEW_USER_DEFAULT_ACTIVITY ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_NEW_USER_DEFAULT_ACTIVITY :outertype: ServerProperties KEY_NO_REPLY_EMAIL ^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_NO_REPLY_EMAIL :outertype: ServerProperties KEY_NO_REPLY_NAME ^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_NO_REPLY_NAME :outertype: ServerProperties KEY_ONE_TIME_TOKEN_EXPIRES_MS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_ONE_TIME_TOKEN_EXPIRES_MS :outertype: ServerProperties KEY_ONE_TIME_TOKEN_REPLAYS_TIMEOUT_MS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_ONE_TIME_TOKEN_REPLAYS_TIMEOUT_MS :outertype: ServerProperties KEY_PASSWORD_STRENGTH_REGEX ^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_PASSWORD_STRENGTH_REGEX :outertype: ServerProperties KEY_PASSWORD_WEAK_MESSAGE ^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_PASSWORD_WEAK_MESSAGE :outertype: ServerProperties KEY_POLICY_COMPONENT ^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_POLICY_COMPONENT :outertype: ServerProperties KEY_PROJECT_NAME ^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_PROJECT_NAME :outertype: ServerProperties KEY_PROJECT_REVISTION ^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_PROJECT_REVISTION :outertype: ServerProperties KEY_PROJECT_VERSION ^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_PROJECT_VERSION :outertype: ServerProperties KEY_QUERY_FILTER_ENTITIES_WITHOUT_RETRIEVE_PERMISSIONS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_QUERY_FILTER_ENTITIES_WITHOUT_RETRIEVE_PERMISSIONS :outertype: ServerProperties KEY_REDIRECT_HTTP_TO_HTTPS_PORT ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_REDIRECT_HTTP_TO_HTTPS_PORT :outertype: ServerProperties KEY_REST_RESPONSE_LOG_FORMAT ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_REST_RESPONSE_LOG_FORMAT :outertype: ServerProperties KEY_SERVER_BIND_ADDRESS ^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SERVER_BIND_ADDRESS :outertype: ServerProperties KEY_SERVER_NAME ^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SERVER_NAME :outertype: ServerProperties KEY_SERVER_OWNER ^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SERVER_OWNER :outertype: ServerProperties KEY_SERVER_PORT_HTTP ^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SERVER_PORT_HTTP :outertype: ServerProperties KEY_SERVER_PORT_HTTPS ^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SERVER_PORT_HTTPS :outertype: ServerProperties KEY_SERVER_SIDE_SCRIPTING_BIN_DIR ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SERVER_SIDE_SCRIPTING_BIN_DIR :outertype: ServerProperties KEY_SERVER_SIDE_SCRIPTING_BIN_DIRS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SERVER_SIDE_SCRIPTING_BIN_DIRS :outertype: ServerProperties KEY_SERVER_SIDE_SCRIPTING_HOME_DIR ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SERVER_SIDE_SCRIPTING_HOME_DIR :outertype: ServerProperties KEY_SERVER_SIDE_SCRIPTING_WORKING_DIR ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SERVER_SIDE_SCRIPTING_WORKING_DIR :outertype: ServerProperties KEY_SESSION_TIMEOUT_MS ^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SESSION_TIMEOUT_MS :outertype: ServerProperties KEY_SHARED_FOLDER ^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SHARED_FOLDER :outertype: ServerProperties KEY_SUDO_PASSWORD ^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_SUDO_PASSWORD :outertype: ServerProperties KEY_TIMEZONE ^^^^^^^^^^^^ .. java:field:: public static final String KEY_TIMEZONE :outertype: ServerProperties KEY_TMP_FILES ^^^^^^^^^^^^^ .. java:field:: public static final String KEY_TMP_FILES :outertype: ServerProperties KEY_TRANSACTION_BENCHMARK_ENABLED ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_TRANSACTION_BENCHMARK_ENABLED :outertype: ServerProperties KEY_USER_FOLDERS ^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_USER_FOLDERS :outertype: ServerProperties KEY_USER_NAME_INVALID_MESSAGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_USER_NAME_INVALID_MESSAGE :outertype: ServerProperties KEY_USER_NAME_VALID_REGEX ^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_USER_NAME_VALID_REGEX :outertype: ServerProperties KEY_USER_SOURCES_INI_FILE ^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_USER_SOURCES_INI_FILE :outertype: ServerProperties KEY_WEBUI_HTTP_HEADER_CACHE_MAX_AGE ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static final String KEY_WEBUI_HTTP_HEADER_CACHE_MAX_AGE :outertype: ServerProperties Methods ------- acceptObserver ^^^^^^^^^^^^^^ .. java:method:: @Override public boolean acceptObserver(Observer o) :outertype: ServerProperties initServerProperties ^^^^^^^^^^^^^^^^^^^^ .. java:method:: public static ServerProperties initServerProperties() throws IOException :outertype: ServerProperties Read the config files and initialize the server properties. :throws IOException: notifyObservers ^^^^^^^^^^^^^^^ .. java:method:: @Override public void notifyObservers(String e) :outertype: ServerProperties setProperty ^^^^^^^^^^^ .. java:method:: @Override public synchronized Object setProperty(String key, String value) :outertype: ServerProperties