Java com.mongodb MongoURI fields, constructors, methods, implement or subclass

Example usage for Java com.mongodb MongoURI fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.mongodb MongoURI.

The text is from its open source code.

Field

StringMONGODB_PREFIX
The prefix for mongodb URIs.

Constructor

MongoURI(final String uri)
Creates a MongoURI from a string.
MongoURI(final MongoClientURI proxied)
Create a new MongoURI from a MongoClientURI.

Method

Mongoconnect()
Creates a Mongo instance based on the URI.
DBconnectDB()
Returns the DB object from a newly created Mongo instance based on this URI.
StringgetCollection()
Gets the collection name.
MongoCredentialgetCredentials()
Gets the credentials.
StringgetDatabase()
Gets the database name.
MongoOptionsgetOptions()
Gets the options.
char[]getPassword()
Gets the password.
StringgetUsername()
Gets the username.
StringtoString()