Class MongoProperties
java.lang.Object
org.springframework.boot.mongodb.autoconfigure.MongoProperties
Configuration properties for Mongo.
- Since:
- 4.0.0
- Author:
- Dave Syer, Phillip Webb, Josh Long, Andy Wilkinson, EddĂș MelĂ©ndez, Stephane Nicoll, Nasko Vasilev, Mark Paluch, Artsiom Yudovin, Safeer Ansari
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Default port used when the configured port isnull
.static final String
Default URI used when the configured URI isnull
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String
@Nullable String
@Nullable String
getHost()
@Nullable String
char @Nullable []
@Nullable Integer
getPort()
@Nullable String
getSsl()
@Nullable String
getUri()
@Nullable String
void
setAdditionalHosts
(@Nullable List<String> additionalHosts) void
setAuthenticationDatabase
(@Nullable String authenticationDatabase) void
setDatabase
(@Nullable String database) void
void
setPassword
(char @Nullable [] password) void
void
setProtocol
(String protocol) void
setReplicaSetName
(@Nullable String replicaSetName) void
void
setUsername
(@Nullable String username)
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORTDefault port used when the configured port isnull
.- See Also:
-
DEFAULT_URI
-
-
Constructor Details
-
MongoProperties
public MongoProperties()
-
-
Method Details
-
setProtocol
-
getProtocol
-
getHost
-
setHost
-
getDatabase
-
setDatabase
-
getAuthenticationDatabase
-
setAuthenticationDatabase
-
getUsername
-
setUsername
-
getPassword
public char @Nullable [] getPassword() -
setPassword
public void setPassword(char @Nullable [] password) -
getReplicaSetName
-
setReplicaSetName
-
getUri
-
determineUri
-
setUri
-
getPort
-
setPort
-
getMongoClientDatabase
-
getAdditionalHosts
-
setAdditionalHosts
-
getRepresentation
-
getSsl
-