Class PropertiesMongoConnectionDetails
java.lang.Object
org.springframework.boot.mongodb.autoconfigure.PropertiesMongoConnectionDetails
- All Implemented Interfaces:
org.springframework.boot.autoconfigure.service.connection.ConnectionDetails, MongoConnectionDetails
Adapts
MongoProperties to MongoConnectionDetails.- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionPropertiesMongoConnectionDetails(MongoProperties properties, @Nullable org.springframework.boot.ssl.SslBundles sslBundles) -
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.ConnectionStringTheConnectionStringfor MongoDB.@Nullable org.springframework.boot.ssl.SslBundleSSL bundle to use.
-
Constructor Details
-
PropertiesMongoConnectionDetails
public PropertiesMongoConnectionDetails(MongoProperties properties, @Nullable org.springframework.boot.ssl.SslBundles sslBundles)
-
-
Method Details
-
getConnectionString
public com.mongodb.ConnectionString getConnectionString()Description copied from interface:MongoConnectionDetailsTheConnectionStringfor MongoDB.- Specified by:
getConnectionStringin interfaceMongoConnectionDetails- Returns:
- the connection string
-
getSslBundle
public @Nullable org.springframework.boot.ssl.SslBundle getSslBundle()Description copied from interface:MongoConnectionDetailsSSL bundle to use.- Specified by:
getSslBundlein interfaceMongoConnectionDetails- Returns:
- the SSL bundle to use
-