Class DatabaseClientBuilder

java.lang.Object
com.marklogic.client.DatabaseClientBuilder

public class DatabaseClientBuilder extends Object
Intended to support programmatically building a DatabaseClient via chained "with" methods for setting each possible input allowed for connecting to and authenticating with MarkLogic. While the DatabaseClientFactory.Bean class is intended for use in a context such as a Spring container, it requires that a user have already assembled the appropriate DatabaseClientFactory.SecurityContext. This builder instead is intended for a more dynamic environment - in particular, one where the desired authentication strategy is not known until runtime. A client can then collect inputs from a user at runtime and call the appropriate methods on this builder. The builder will handle constructing the correct DatabaseClientFactory.SecurityContext and using that to construct a DatabaseClient.
Since:
6.1.0