public class WebViewConfiguration extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_WEBVIEW_SECURE_SERVER_PORT
The default secure sever port.
|
static int |
DEFAULT_WEBVIEW_SERVER_INSTANCES
The default number of server instances.
|
static int |
DEFAULT_WEBVIEW_SERVER_PORT
The default server port.
|
static java.lang.String |
DEFAULT_WEBVIEW_SERVER_ROOT_DIR
The default root directory.
|
static java.lang.String |
WEBVIEW_SERVER_DAEMON_FLAG
Command line flag to run the server in daemon mode.
|
static java.lang.String |
WEBVIEW_SERVER_INSTANCES_FLAG
Command line flag to specify the number of server instances.
|
static java.lang.String |
WEBVIEW_SERVER_PORT_FLAG
Command line flag to specify the server port.
|
static java.lang.String |
WEBVIEW_SERVER_ROOT_DIR_FLAG
Command line flag to specify the root directory.
|
static java.lang.String |
WEBVIEW_START_SERVER_FLAG
Command line flag to start the server.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
deployInKubernetes() |
static boolean |
enableHttps()
Returns true if the http server should use ssl.
|
static boolean |
enableHttpServerTableOfContents()
Returns true if the http server table of contents should be enabled.
|
static java.lang.String |
getAppClassName(java.lang.String appName)
Get the class name of an app.
|
static java.util.List<ConfigurationProperty> |
getAppProperties(java.lang.String appName,
java.lang.String confName)
Get config properties for an app.
|
static io.vertx.ext.auth.AuthProvider |
getAuthProvider()
Get an authentication provider based on the authentication type
specified in the configuration.
|
static java.lang.String |
getHazelcastDiscoveryDnsServiceName() |
static boolean |
getHttpServerAllowWorkflowDownloads()
Returns true if the http server allows workflows to be downloaded.
|
static boolean |
getHttpServerAppendIndexHtml() |
static java.lang.String |
getHttpServerCorsAllowOriginPattern()
Get the CORS allow origin pattern.
|
static boolean |
getHttpServerCorsEnabled()
Returns true if the http server allows CORS.
|
static java.util.Set<java.lang.String> |
getHttpServerDirectoriesToIndex()
Get list of server directories that can be indexed.
|
static int |
getHttpServerInstances()
Get the number of instances of http servers to start.
|
static java.lang.String |
getHttpServerLogPath()
Get the log directory and file name for the http server.
|
static java.lang.String |
getHttpServerMetadataFileName()
Get the metadata file name.
|
static int |
getHttpServerPort() |
static java.lang.String |
getHttpServerRedirectHostname()
Get the hostname to redirect http requests to.
|
static int |
getHttpServerRedirectPort()
Get the port to redirect http requests to.
|
static int |
getHttpServerRedirectStatus()
Get the http redirect status code.
|
static java.lang.String |
getHttpServerRootDir()
Returns the root directory for the HTTP Server.
|
static long |
getHttpServerSessionTimeout()
Get the timeout, in milliseconds, for the session if not accessed.
|
static java.lang.String |
getHttpServerTableOfContentsPath()
Get the path regex of the http server table of contents.
|
static int |
getHttpServerWorkerThreads()
Returns the number of threads for the worker pool.
|
static long |
getHttpServerWorkflowTimeout()
Get the timeout, in milliseconds, for workflow execution.
|
static java.lang.String |
getHttpsPEMCertPath()
Get the SSL PEM Certificate file path.
|
static java.lang.String |
getHttpsPEMKeyPath()
Get the SSL PEM Key file path.
|
static int |
getHttpsServerPort()
Get the port number for the https server.
|
static java.util.Set<java.lang.String> |
getPreloadModels()
Returns any models to be preloaded.
|
static java.lang.String |
getROHubAuthToken()
Returns the auth token for ROHUB.
|
static java.lang.String |
getROHubURI()
Returns the URI for ROHUB REST API.
|
static java.lang.String |
getSimpleAuthGroup(java.lang.String username,
java.lang.String password)
Get the authorization group.
|
static boolean |
shouldHttpServerRedirect() |
static boolean |
shouldStartCluster()
Get if vertx should start in clustered mode.
|
static boolean |
shouldStartClusterHazelcast()
Get if vertx should use hazelcast for clustered mode.
|
static boolean |
shouldStartHttpServer()
Returns true if the web view http server should start.
|
static boolean |
shouldStartHttpServerAsDaemon()
Returns true if the web view http server should start in daemon mode.
|
public static final java.lang.String WEBVIEW_SERVER_PORT_FLAG
public static final int DEFAULT_WEBVIEW_SERVER_PORT
public static final int DEFAULT_WEBVIEW_SECURE_SERVER_PORT
public static final java.lang.String WEBVIEW_SERVER_ROOT_DIR_FLAG
public static final java.lang.String DEFAULT_WEBVIEW_SERVER_ROOT_DIR
public static final java.lang.String WEBVIEW_START_SERVER_FLAG
public static final java.lang.String WEBVIEW_SERVER_DAEMON_FLAG
public static final java.lang.String WEBVIEW_SERVER_INSTANCES_FLAG
public static final int DEFAULT_WEBVIEW_SERVER_INSTANCES
public static boolean enableHttpServerTableOfContents()
public static boolean enableHttps()
public static java.util.Set<java.lang.String> getPreloadModels()
public static java.lang.String getROHubAuthToken()
public static java.lang.String getROHubURI()
public static java.lang.String getSimpleAuthGroup(java.lang.String username, java.lang.String password)
username
- The user name.password
- The password.public static java.lang.String getAppClassName(java.lang.String appName)
public static java.util.List<ConfigurationProperty> getAppProperties(java.lang.String appName, java.lang.String confName)
public static io.vertx.ext.auth.AuthProvider getAuthProvider()
public static java.lang.String getHttpServerCorsAllowOriginPattern()
public static boolean getHttpServerCorsEnabled()
public static boolean getHttpServerAllowWorkflowDownloads()
public static boolean getHttpServerAppendIndexHtml()
public static java.util.Set<java.lang.String> getHttpServerDirectoriesToIndex()
public static int getHttpServerInstances()
public static java.lang.String getHttpServerLogPath()
public static java.lang.String getHttpServerMetadataFileName()
public static int getHttpServerPort()
public static int getHttpServerRedirectStatus()
public static java.lang.String getHttpServerRedirectHostname()
public static int getHttpServerRedirectPort()
public static java.lang.String getHttpServerRootDir()
public static long getHttpServerSessionTimeout()
public static java.lang.String getHttpServerTableOfContentsPath()
public static int getHttpServerWorkerThreads()
public static long getHttpServerWorkflowTimeout()
public static int getHttpsServerPort()
public static java.lang.String getHttpsPEMKeyPath()
public static java.lang.String getHttpsPEMCertPath()
public static boolean shouldHttpServerRedirect()
public static boolean shouldStartHttpServer()
public static boolean shouldStartHttpServerAsDaemon()
public static boolean deployInKubernetes()
public static java.lang.String getHazelcastDiscoveryDnsServiceName()
public static boolean shouldStartClusterHazelcast()
public static boolean shouldStartCluster()