All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webswing.Constants Maven / Gradle / Ivy

There is a newer version: 20.2.4
Show newest version
package org.webswing;

public interface Constants {

	// Web related constants
	public static final String CLIENT_ID_COOKIE = "webswingID";
	public static final String ENTERPRISE_MODULE = "org.webswing.enterprise.EnterpriseServerModule";

	// swing startup properties
	public static final String SWING_START_SYS_PROP_CLIENT_ID = "webswing.clientId";
	public static final String SWING_START_SYS_PROP_APP_ID = "webswing.appId";
	public static final String SWING_START_SYS_PROP_JMS_ID = "webswing.jmsQueueId";
	public static final String SWING_START_SYS_PROP_MAIN_CLASS = "webswing.mainClass";
	public static final String SWING_START_SYS_PROP_APP_HOME = "webswing.applicationHome";
	public static final String SWING_START_SYS_PROP_CLASS_PATH = "webswing.classPath";
	public static final String SWING_START_SYS_PROP_ISOLATED_FS = "webswing.isolatedFs";
	public static final String SWING_START_SYS_PROP_USE_SHARED_USER_HOME = "webswing.useSharedUserHome";
	public static final String SWING_START_SYS_PROP_TRANSFER_DIR = "webswing.transfer.dir";
	public static final String SWING_START_SYS_PROP_DIRECTDRAW = "webswing.directdraw";
	public static final String SWING_START_SYS_PROP_DIRECTDRAW_SUPPORTED = "webswing.directdraw.supported";
	public static final String SWING_START_SYS_PROP_COMPOSITING_WM = "webswing.compositingWindowManager";
	public static final String SWING_START_SYS_PROP_ALLOW_DOWNLOAD = "webswing.allowDownload";
	public static final String SWING_START_SYS_PROP_ALLOW_AUTO_DOWNLOAD = "webswing.allowAutoDownload";
	public static final String SWING_START_SYS_PROP_ALLOW_UPLOAD = "webswing.allowUpload";
	public static final String SWING_START_SYS_PROP_TRANSPARENT_FILE_OPEN = "webswing.transparentFileOpen";
	public static final String SWING_START_SYS_PROP_TRANSPARENT_FILE_SAVE = "webswing.transparentFileSave";
	public static final String SWING_START_SYS_PROP_ALLOW_DELETE = "webswing.allowDelete";
	public static final String SWING_START_SYS_PROP_ALLOW_JSLINK = "webswing.allowJsLink";
	public static final String SWING_START_SYS_PROP_JSLINK_WHITELIST = "webswing.jsLinkWhitelist";
	public static final String SWING_START_SYS_PROP_ALLOW_LOCAL_CLIPBOARD = "webswing.allowLocalClipboard";
	public static final String SWING_SESSION_TIMEOUT_SEC = "webswing.sessionTimeoutSec";
	public static final String SWING_SESSION_TIMEOUT_SEC_IF_FILECHOOSER_ACTIVE = "webswing.sessionTimeoutSecIfFileChooserActive";
	public static final String SWING_SESSION_TIMEOUT_IF_INACTIVE = "webswing.sessionTimeoutIfInactive";
	public static final String SWING_START_SYS_PROP_SYNC_TIMEOUT = "webswing.syncCallTimeout";
	public static final String SWING_START_SYS_PROP_THEME = "webswing.theme";
	public static final String SWING_START_SYS_PROP_WAIT_FOR_EXIT = "webswing.waitForExit";
	public static final String SWING_START_SYS_PROP_DOUBLE_CLICK_DELAY = "webswing.doubleClickMaxDelay";
	public static final String SWING_START_SYS_PROP_INITIAL_URL = "webswing.initialUrl" ;
	public static final String SWING_START_SYS_PROP_MSG_API_TOPIC = "webswing.messagingApiTopicName";
	public static final String SWING_START_SYS_PROP_CLASS_MODIFICATION_BLACKLIST = "webswing.classModificationBlacklist";
	public static final String SWING_START_SYS_PROP_LOG_LEVEL = "webswing.logLevel";
	public static final String SWING_START_SYS_PROP_TEST_MODE = "webswing.testMode";
	public static final String SWING_START_SYS_PROP_EVENT_DISPATCHER_CLASS= "webswing.eventDispatcherClass";
	public static final String SWING_START_SYS_PROP_PAINT_DISPATCHER_CLASS = "webswing.paintDispatcherClass";
	public static final String SWING_START_SYS_PROP_DOCK_MODE = "webswing.dockMode";
	public static final String SWING_START_SYS_PROP_TOUCH_MODE = "webswing.touchMode";
	public static final String SWING_START_SYS_PROP_ACCESSIBILITY_ENABLED = "webswing.accessibilityEnabled";
	public static final String SWING_START_SYS_PROP_FONT_CONFIG = "webswing.fontConfig";
	public static final String SWING_START_SYS_PROP_STATISTICS_LOGGING_ENABLED = "webswing.statisticsLoggingEnabled";


	public static final	String PRINTER_JOB_CLASS = "webswing.printerJobDelegate";


	//javafx startup
	public static final String SWING_FX_TOOLKIT_FACTORY = "webswing.fxToolkitFactory";
	public static final String SWING_START_SYS_PROP_JFX_TOOLKIT = "glass.platform";
	public static final String SWING_START_SYS_PROP_JFX_TOOLKIT_WEB = "Web";
	public static final String SWING_START_SYS_PROP_JFX_PRISM = "prism.order";

	// applet startup properties
	public static final String SWING_START_SYS_PROP_APPLET_CLASS = "webswing.appletClass";
	public static final String SWING_START_STS_PROP_APPLET_PARAM_PREFIX = "webswing.appletParam_";
	public static final String SWING_START_SYS_PROP_APPLET_DOCUMENT_BASE = "webswing.appletDocumentBase";

	// JMS queue names
	public static final String SWING2SERVER = "Swing2Server";
	public static final String SERVER2SWING = "Server2Swing";
	public static final String SERVER2SWING_SYNC = "Server2SwingSync";
	public static final String JMS_URL = "webswing.jmsUrl";
	public static final String JMS_URL_DEFAULT = "nio://127.0.0.1:34455";
	public static final String JMS_SERIALIZABLE_PACKAGES = "*";
	public static final String JMS_ENABLE_JMX = "webswing.enableActiveMqJmx";

	// server startup constants
	public static final String WAR_FILE_LOCATION = "webswing.warLocation";
	public static final String ROOT_DIR_URI = "webswing.rootDirUri";
	public static final String ROOT_DIR_PATH = "webswing.rootDir";
	public static final String CONFIG_PATH = "webswing.configDir";
	public static final String TEMP_DIR_PATH_BASE = "webswing.tempDirBase";
	public static final String TEMP_DIR_PATH = "webswing.tempDirPath";
	public static final String CREATE_NEW_TEMP = "webswing.createNewTemp";
	public static final String CLEAN_TEMP = "webswing.cleanTempDir";
	public static final String CONFIG_FILE_PATH = "webswing.configFile";
	public static final String CONFIG_RELOAD_INTERVAL_MS = "webswing.configReloadIntervalMs";
	public static final String DEFAULT_CONFIG_FILE_NAME = "webswing.config";
	public static final String DEFAULT_RECORDINGS_FOLDER = "${webswing.tempDirPath}recordings${webswing.appPath}/";
	public static final String SERVER_HOST = "webswing.server.host";
	public static final String SERVER_PORT = "webswing.server.port";
	public static final String SERVER_CONTEXT_PATH = "webswing.server.contextPath";
	public static final String SERVER_EMBEDED_FLAG = "webswing.server.embeded";
	public static final String JMS_OVERAL_MEM_LIMIT = "webswing.jmsOveralMemoryLimit";
	public static final String JMS_DEST_MEM_LIMIT = "webswing.jmsDestinationMemoryLimit";
	public static final String WEBSOCKET_MESSAGE_SIZE = "webswing.websocketMessageSizeLimit";
	public static final String WEBSOCKET_THREAD_POOL = "webswing.websocketThreadPoolLimit";
	public static final String DEFAULT_WELCOME_PAGE = "webswing.defaultWelcomePage";
	public static final String FILE_SERVLET_WAIT_TIMEOUT = "webswing.fileServletWaitTimeout";
	public static final String REVERSE_PROXY_CONTEXT_PATH = "webswing.proxyContextPath";
	public static final String HTTPS_ONLY = "webswing.httpsOnly";
	public static final String DISABLE_HTTP_SECURITY_HEADERS = "webswing.disableHttpSecurityHeaders";
	public static final String LINK_COOKIE_TO_IP = "webswing.linkCookieToIpAddress";
	public static final String COOKIE_SAMESITE = "webswing.cookieSameSite";

	// logging properties
	public static final String LOGS_DIR_PATH = "webswing.logsDir";
	public static final String LOGS_SESSION_MAX_SIZE = "webswing.sessionLog.maxSize";
	public static final String LOGS_SESSION_SIZE = "webswing.sessionLog.size";

	// swing start related properties
	public static final String SWING_SCREEN_WIDTH = "webswing.screenWidth";
	public static final String SWING_SCREEN_HEIGHT = "webswing.screenHeight";
	public static final int SWING_SCREEN_WIDTH_MIN = 300;
	public static final int SWING_SCREEN_HEIGHT_MIN = 300;
	public static final String SWING_SCREEN_VALIDATION_DISABLED = "webswing.disableWindowPositionValidation";
	public static final String PAINT_ACK_TIMEOUT = "webswing.paintAckTimeout";



	//webswing configuration variables
	public static final String USER_NAME_SUBSTITUTE = "user";
	public static final String SESSION_ID_SUBSTITUTE = "clientId";
	public static final String SESSION_IP_SUBSTITUTE = "clientIp";
	public static final String SESSION_LOCALE_SUBSTITUTE = "clientLocale";
	public static final String SESSION_TIMEZONE_SUBSTITUTE = "clientTimeZone";
	public static final String SESSION_CUSTOMARGS_SUBSTITUTE = "customArgs";
	public static final String APP_HOME_FOLDER_SUBSTITUTE = "webswing.homeFolder";
	public static final String APP_CONTEXT_PATH_SUBSTITUTE = "webswing.appPath";


	// http request header names
	public static final String HTTP_ATTR_RECORDING_FLAG = "X-webswing-recording";
	public static final String HTTP_ATTR_ARGS = "X-webswing-args";
	public static final String HTTP_ATTR_DEBUG_PORT = "X-webswing-debugPort";
	public static final String HTTP_ATTR_CSRF_TOKEN_HEADER = "X-webswing-CSRFToken";
	public static final String HTTP_PARAM_SECURITY_TOKEN_HEADER = "securityToken";

	//integration-branding
	public static final String BRANDING_PREFIX = "webswing.brandingPrefix";
	public static final String EXTENSTION_INITIALIZER = "webswing.extensionInitializer";
	public static final String EXTENSTION_CLASSLOADER = "webswing.extensionClassLoader";
	public static final String EXTENSION_PROVIDER = "webswing.extensionProvider" ;
	public static final String CONFIG_PROVIDER = "webswing.configProvider";
	
	public static final String SESSION_LOG_PATTERN = "%d %-5p [%t] (%F:%L) %m%n";

	// stats properties
	public static final String STATS_INTERVAL = "webswing.stats.interval";
	public static final String STATS_HISTORY = "webswing.stats.historySize";
	public static final String STATS_WARN_MEMUSAGE_TRESHOLD = "webswing.stats.memUsageWarn";
	public static final String STATS_WARN_LATENCY_TRESHOLD = "webswing.stats.latencyWarn";
	public static final String STATS_WARN_PING_TRESHOLD = "webswing.stats.pingWarn";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy