The Uri is for connecting to a server and is used to return a Mongo
instance. From there you need to get the DB and Collection normally
through the Mongo instance.
Those collection related methods are going to be deprecated and are
not part of the (mongo) URI connection string.
On Tue, Jul 24, 2012 at 5:29 AM, Jonas <
jo8...@gmail.com> wrote:
> Hello.
>
> I am using the Java driver and the MongoURI class. I am confused, it seems
> to me that there is a method to get the collection name. But there is no way
> to choose the collection in the URI string? If there is, could someone give
> me an example.
>
>
http://api.mongodb.org/java/2.8.0/com/mongodb/MongoURI.html#getCollection()
>
> Thank you!
> /Jonas
>
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to
mongod...@googlegroups.com
> To unsubscribe from this group, send email to
>
mongodb-user...@googlegroups.com
> See also the IRC channel --
freenode.net#mongodb