Package org.knime.core.webui
Class WebUIUtil
java.lang.Object
org.knime.core.webui.WebUIUtil
Utily methods relevant for the web UI.
- Author:
- Martin Horn, KNIME GmbH, Konstanz, Germany
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSystem property that controls whether external requests from within CEF browser instances are to be blocked or not. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturn whether the dev mode is set or not.static voidopenURLInExternalBrowserAndAddToDebugLog(String url, Class<?> classForLogging) Tries to open the given URL in an external browser, but only if its prefix is contained in the list above.
-
Field Details
-
BLOCK_ALL_EXTERNAL_REQUESTS_SYS_PROP
System property that controls whether external requests from within CEF browser instances are to be blocked or not.- See Also:
-
-
Method Details
-
isInDevMode
public static boolean isInDevMode()Return whether the dev mode is set or not.- Returns:
- isDevMode
-
openURLInExternalBrowserAndAddToDebugLog
Tries to open the given URL in an external browser, but only if its prefix is contained in the list above. Will also output respective debug log messages.- Parameters:
url-classForLogging-
-