public static class DatabaseClientFactory.Bean
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Bean()
Zero-argument constructor for bean
applications.
|
Modifier and Type | Method and Description |
---|---|
void |
clearHandleRegistry()
Removes the current registered associations so
the handle registry is empty.
|
java.lang.String |
getBasePath() |
DatabaseClient.ConnectionType |
getConnectionType()
Identifies whether the client connects directly
with a MarkLogic host or by means of a gateway such as a load
balancer.
|
java.lang.String |
getDatabase()
Returns the database for clients created with a
DatabaseClientFactory.Bean object.
|
DatabaseClientFactory.HandleFactoryRegistry |
getHandleRegistry()
Returns the registry for associating IO
representation classes with handle factories.
|
java.lang.String |
getHost()
Returns the host for clients created with a
DatabaseClientFactory.Bean object.
|
int |
getPort()
Returns the port for clients created with a
DatabaseClientFactory.Bean object.
|
DatabaseClientFactory.SecurityContext |
getSecurityContext()
Returns the security context for clients created
with a DatabaseClientFactory.Bean object - BasicAuthContext,
DigestAuthContext or KerberosAuthContext
|
DatabaseClient |
newClient()
Creates a client for bean applications based on
the properties.
|
void |
registerDefaultHandles()
Initializes a handle registry with the default
associations between the content handles provided by the API and
the supported IO representation classes.
|
void |
setBasePath(java.lang.String basePath)
Set a base path to use for constructing a
client
|
void |
setConnectionType(DatabaseClient.ConnectionType connectionType)
Specify whether the client connects directly
with a MarkLogic host or by means of a gateway such as a load
balancer.
|
void |
setDatabase(java.lang.String database)
Specifies the database for clients created with
a DatabaseClientFactory.Bean object.
|
void |
setHost(java.lang.String host)
Specifies the host for clients created from a
DatabaseClientFactory.Bean object.
|
void |
setPort(int port)
Specifies the port for clients created with a
DatabaseClientFactory.Bean object.
|
void |
setSecurityContext(DatabaseClientFactory.SecurityContext securityContext)
Specifies the security context for clients
created with a DatabaseClientFactory.Bean object
|
public Bean()
public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- the client hostpublic int getPort()
public void setPort(int port)
port
- the client portpublic java.lang.String getBasePath()
public void setBasePath(java.lang.String basePath)
basePath
-public java.lang.String getDatabase()
public void setDatabase(java.lang.String database)
database
- a database to pass along to new
DocumentManager and QueryManager instancespublic DatabaseClientFactory.SecurityContext getSecurityContext()
public void setSecurityContext(DatabaseClientFactory.SecurityContext securityContext)
securityContext
- the security context -
BasicAuthContext, DigestAuthContext or KerberosAuthContextpublic DatabaseClient.ConnectionType getConnectionType()
public void setConnectionType(DatabaseClient.ConnectionType connectionType)
connectionType
- the connection typepublic DatabaseClientFactory.HandleFactoryRegistry getHandleRegistry()
public void clearHandleRegistry()
public void registerDefaultHandles()
public DatabaseClient newClient()
Copyright © 2024 MarkLogic Corporation. All Rights Reserved.