3131public class MarkLogicConfig extends AbstractConfig {
3232 public static final String CONNECTION_HOST = "ml.connection.host" ;
3333 public static final String CONNECTION_PORT = "ml.connection.port" ;
34+ public static final String CONNECTION_BASE_PATH = "ml.connection.basePath" ;
3435 public static final String CONNECTION_DATABASE = "ml.connection.database" ;
3536 public static final String CONNECTION_SECURITY_CONTEXT_TYPE = "ml.connection.securityContextType" ;
3637 public static final String CONNECTION_USERNAME = "ml.connection.username" ;
@@ -40,6 +41,7 @@ public class MarkLogicConfig extends AbstractConfig {
4041 public static final String CONNECTION_CERT_FILE = "ml.connection.certFile" ;
4142 public static final String CONNECTION_CERT_PASSWORD = "ml.connection.certPassword" ;
4243 public static final String CONNECTION_EXTERNAL_NAME = "ml.connection.externalName" ;
44+ public static final String CONNECTION_CLOUD_API_KEY = "ml.connection.cloudApiKey" ;
4345 public static final String ENABLE_CUSTOM_SSL = "ml.connection.enableCustomSsl" ;
4446 public static final String TLS_VERSION = "ml.connection.customSsl.tlsVersion" ;
4547 public static final String SSL_HOST_VERIFIER = "ml.connection.customSsl.hostNameVerifier" ;
@@ -58,6 +60,9 @@ public static void addDefinitions(ConfigDef configDef) {
5860 .define (CONNECTION_PORT , Type .INT , ConfigDef .NO_DEFAULT_VALUE , ConfigDef .Range .atLeast (0 ), Importance .HIGH ,
5961 "Required; the port of a REST API app server to connect to; if using Bulk Data Services, can be a plain HTTP app server" ,
6062 GROUP , -1 , ConfigDef .Width .MEDIUM , "Port" )
63+ .define (CONNECTION_BASE_PATH , Type .STRING , null , Importance .MEDIUM ,
64+ "Base path for all calls to MarkLogic; typically used when a reverse proxy is in front of MarkLogic" ,
65+ GROUP , -1 , ConfigDef .Width .MEDIUM , "Base Path" )
6166 .define (CONNECTION_SECURITY_CONTEXT_TYPE , Type .STRING , "DIGEST" , CONNECTION_SECURITY_CONTEXT_TYPE_RV , Importance .HIGH ,
6267 "Required; the authentication scheme used by the server defined by ml.connection.port; either 'DIGEST', 'BASIC', 'CERTIFICATE', 'KERBEROS', or 'NONE'" ,
6368 GROUP , -1 , ConfigDef .Width .MEDIUM , "Security Context Type" , CONNECTION_SECURITY_CONTEXT_TYPE_RV )
@@ -79,6 +84,9 @@ public static void addDefinitions(ConfigDef configDef) {
7984 .define (CONNECTION_EXTERNAL_NAME , Type .STRING , null , Importance .MEDIUM ,
8085 "External name for 'KERBEROS' authentication" ,
8186 GROUP , -1 , ConfigDef .Width .MEDIUM , "Kerberos External Name" )
87+ .define (CONNECTION_CLOUD_API_KEY , Type .STRING , null , Importance .MEDIUM ,
88+ "API key for connecting to MarkLogic Cloud. Should set port to 443 when connecting to MarkLogic Cloud." ,
89+ GROUP , -1 , ConfigDef .Width .MEDIUM , "Cloud API Key" )
8290 .define (CONNECTION_TYPE , Type .STRING , "" , CONNECTION_TYPE_RV , Importance .MEDIUM ,
8391 "Set to 'GATEWAY' when the host identified by ml.connection.host is a load balancer. See https://docs.marklogic.com/guide/java/data-movement#id_26583 for more information." ,
8492 GROUP , -1 , ConfigDef .Width .MEDIUM , "Connection Type" , CONNECTION_TYPE_RV )
0 commit comments