public class ApiMongoConnector extends Object
| Constructor and Description |
|---|
ApiMongoConnector()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection to mongo
|
org.mongodb.morphia.Datastore |
createDatastore(String connectionUri,
String truststore,
String truststorePass)
Mongo create datastore
|
SSLContext |
getSslContext(String truststore,
String truststorePass) |
protected void |
validateTrustStoreConfig(String truststore,
String truststorePass) |
public org.mongodb.morphia.Datastore createDatastore(String connectionUri, String truststore, String truststorePass)
connectionUri - - the connection URI, without database nametruststore - - the name of the trustore file available in classpath in the /config foldertruststorePass - - the password needd to access the trustorepublic void close()
protected void validateTrustStoreConfig(String truststore, String truststorePass)
public SSLContext getSslContext(String truststore, String truststorePass)
Copyright © 2017 Europeana Foundation + AIT. All rights reserved.