Skip to content

Commit 72dfe56

Browse files
authored
add arangodb.httpCookieSpec
1 parent 3f830e6 commit 72dfe56

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/com/arangodb/internal/InternalArangoDBBuilder.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public abstract class InternalArangoDBBuilder {
7171
private static final String PROPERTY_KEY_USER = "arangodb.user";
7272
private static final String PROPERTY_KEY_PASSWORD = "arangodb.password";
7373
private static final String PROPERTY_KEY_USE_SSL = "arangodb.usessl";
74+
private static final String PROPERTY_KEY_COOKIE_SPEC = "arangodb.httpCookieSpec";
7475
private static final String PROPERTY_KEY_V_STREAM_CHUNK_CONTENT_SIZE = "arangodb.chunksize";
7576
private static final String PROPERTY_KEY_MAX_CONNECTIONS = "arangodb.connections.max";
7677
private static final String PROPERTY_KEY_CONNECTION_TTL = "arangodb.connections.ttl";
@@ -85,6 +86,7 @@ public abstract class InternalArangoDBBuilder {
8586
protected String user;
8687
protected String password;
8788
protected Boolean useSsl;
89+
protected String httpCookieSpec;
8890
protected SSLContext sslContext;
8991
protected Integer chunksize;
9092
protected Integer maxConnections;
@@ -134,6 +136,7 @@ protected void loadProperties(final Properties properties) {
134136
user = loadUser(properties, user);
135137
password = loadPassword(properties, password);
136138
useSsl = loadUseSsl(properties, useSsl);
139+
httpCookieSpec = loadhttpCookieSpec(properties, useSsl);
137140
chunksize = loadChunkSize(properties, chunksize);
138141
maxConnections = loadMaxConnections(properties, maxConnections);
139142
connectionTtl = loadConnectionTtl(properties, connectionTtl);
@@ -284,6 +287,10 @@ private static Boolean loadUseSsl(final Properties properties, final Boolean cur
284287
return Boolean.parseBoolean(
285288
getProperty(properties, PROPERTY_KEY_USE_SSL, currentValue, ArangoDefaults.DEFAULT_USE_SSL));
286289
}
290+
291+
private static String loadhttpCookieSpec(final Properties properties, final Boolean currentValue) {
292+
return getProperty(properties, PROPERTY_KEY_COOKIE_SPEC, currentValue, "");
293+
}
287294

288295
private static Integer loadChunkSize(final Properties properties, final Integer currentValue) {
289296
return Integer.parseInt(getProperty(properties, PROPERTY_KEY_V_STREAM_CHUNK_CONTENT_SIZE, currentValue,

0 commit comments

Comments
 (0)