public class MongoDbUri extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
MONGODB_URI_PREFIX
The prefix for a MongoDB URI. 
 | 
| Constructor and Description | 
|---|
MongoDbUri(String mongoDbUri)
Creates a new MongoDbUri. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getDatabase()
Returns the database contained in the URI. 
 | 
List<String> | 
getHosts()
Returns the hosts contained in the URI. 
 | 
String | 
getOptions()
Returns the options contained in the URI. 
 | 
String | 
getPassword()
Returns the password contained in the URI. 
 | 
String | 
getUserName()
Returns the user name contained in the URI. 
 | 
public static final String MONGODB_URI_PREFIX
public MongoDbUri(String mongoDbUri) throws IllegalArgumentException
mongoDbUri - The configuration for the connection to MongoDB expressed as a
            MongoDB URL.IllegalArgumentException - If the mongoDbUri is not a properly formated MongoDB
             style URL.public String getDatabase()
public List<String> getHosts()
public String getOptions()
public String getPassword()
null.public String getUserName()
null.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.