<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:03 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-2381] Implement builder for MongoClientURI (and maybe ConnectionString)</title>
                <link>https://jira.mongodb.org/browse/JAVA-2381</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Currently &lt;tt&gt;MongoClientURI&lt;/tt&gt; can be created either from &lt;tt&gt;String&lt;/tt&gt; or &lt;tt&gt;String&lt;/tt&gt; + &lt;tt&gt;MongoClientOptions.Builder&lt;/tt&gt; and can&apos;t be created from existing &lt;tt&gt;MongoClientURI&lt;/tt&gt; with some alterations. &lt;/p&gt;

&lt;p&gt;I propose adding a builder (public static inner class in &lt;tt&gt;MongoClientURI&lt;/tt&gt; would be OK, I think) with convenience static methods like &lt;tt&gt;MongoClientURI.builder()&lt;/tt&gt; and &lt;tt&gt;MongoClientURI.builder(MongoClientURI from)&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Builder itself would have convenient methods like &lt;tt&gt;hosts(String...)&lt;/tt&gt;, &lt;tt&gt;hosts(List&amp;lt;String&amp;gt;)&lt;/tt&gt;, &lt;tt&gt;database(String)&lt;/tt&gt;, &lt;tt&gt;collection(String)&lt;/tt&gt;, &lt;tt&gt;username(String)&lt;/tt&gt;, &lt;tt&gt;password(char[])&lt;/tt&gt; and a number of methods for standard options, present in &lt;tt&gt;ConnectionString&lt;/tt&gt;/&lt;tt&gt;MongoClientURI&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;If this proposal is acceptable, I&apos;ll publish prototype on github.&lt;/p&gt;</description>
                <environment></environment>
        <key id="331238">JAVA-2381</key>
            <summary>Implement builder for MongoClientURI (and maybe ConnectionString)</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="grossws">gross</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Nov 2016 14:38:12 +0000</created>
                <updated>Wed, 28 Dec 2016 21:45:55 +0000</updated>
                            <resolved>Wed, 28 Dec 2016 21:45:55 +0000</resolved>
                                                                    <component>Configuration</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1466143" author="jeff.yemin" created="Wed, 28 Dec 2016 21:45:55 +0000"  >&lt;p&gt;Hi Konstantin,&lt;/p&gt;

&lt;p&gt;As we haven&apos;t heard back from you with a response to our questions, I&apos;m closing this issue.  Feel free to respond when you can and we can re-open if necessary.&lt;/p&gt;</comment>
                            <comment id="1431917" author="ross@10gen.com" created="Fri, 11 Nov 2016 14:56:25 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=grossws&quot; class=&quot;user-hover&quot; rel=&quot;grossws&quot;&gt;grossws&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the ticket.  I&apos;m unclear as to the purpose of this suggestion. Given you already have a way to override &lt;tt&gt;MongoClientURI&lt;/tt&gt; settings with the &lt;tt&gt;MongoClientOptions.Builder&lt;/tt&gt; why complicate it by adding a third way to set options?&lt;/p&gt;

&lt;p&gt;Or are you after a way to programatically construct a ConnectionString?&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsrshb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>