com.mongodb
Class MongoClientURI

java.lang.Object
  extended by com.mongodb.MongoClientURI

public class MongoClientURI
extends Object

Represents a URI which can be used to create a MongoClient instance. The URI describes the hosts to be used and options.

The format of the URI is:

   mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
 

The Java driver supports the following options (case insensitive):

Replica set configuration:

Connection Configuration:

Connection pool configuration:

Write concern configuration:

Read preference configuration:

Authentication configuration: