Tabnine Logo
com.marklogic.client
Code IndexAdd Tabnine to your IDE (free)

How to use com.marklogic.client

Best Java code snippets using com.marklogic.client (Showing top 20 results out of 315)

origin: com.marklogic/client-api-java

/**
 * Specifies the authentication type for clients created with a
 * DatabaseClientFactory.Bean object based on a string value.
 * @param authentication    the authentication type
 */
public void setAuthenticationValue(String authentication) {
  this.authentication = Authentication.valueOfUncased(authentication);
}
/**
origin: com.marklogic/ml-javaclient-util

@Override
public void destroy() throws Exception {
  if (client != null) {
    client.release();
  }
}
origin: com.marklogic/client-api-java

/**
 * Creates a client to access the database by means of a REST server
 * without any authentication. Such clients can be convenient for
 * experimentation but should not be used in production. 
 * 
 * @param host    the host with the REST server
 * @param port    the port for the REST server
 * @return    a new client for making database requests
 */
static public DatabaseClient newClient(String host, int port) {
  return newClient(host, port, null, null, null, null, null);
}
origin: marklogic/java-client-api

public static DatabaseClient newAdminClient() {
 return DatabaseClientFactory.newClient(
  Common.HOST, Common.PORT, new DigestAuthContext(Common.REST_ADMIN_USER, Common.REST_ADMIN_PASS),
    CONNECTION_TYPE);
}
public static DatabaseClient newServerAdminClient() {
origin: marklogic/java-client-api

private DatabaseClientFactory.Bean makeClientBeanFactory() {
  DatabaseClientFactory.Bean clientFactoryBean = new DatabaseClientFactory.Bean();
  DatabaseClientFactory.DigestAuthContext clientFactoryContext = new DatabaseClientFactory.DigestAuthContext(Common.USER, Common.PASS);
  clientFactoryBean.setHost(Common.HOST);
  clientFactoryBean.setPort(Common.PORT);
  clientFactoryBean.setSecurityContext(clientFactoryContext);
  return clientFactoryBean;
  }

origin: marklogic/java-client-api

private DatabaseClientFactory.Bean makeClientFactory() {
 DatabaseClientFactory.Bean clientFactoryBean = new DatabaseClientFactory.Bean();
 clientFactoryBean.setHost(Common.HOST);
 clientFactoryBean.setPort(Common.PORT);
 clientFactoryBean.setUser(Common.USER);
 clientFactoryBean.setPassword(Common.PASS);
 clientFactoryBean.setAuthentication(Authentication.DIGEST);
 return clientFactoryBean;
}

origin: com.marklogic/marklogic-unit-test-client

public TestManager(DatabaseClient client, ServiceResponseUnmarshaller unitTestXmlParser) {
  super();
  this.unitTestXmlParser = unitTestXmlParser;
  client.init("marklogic-unit-test", this);
}
origin: com.marklogic/client-api-java

  @Override
  public void verify(String hostname, String[] cns, String[] subjectAlts)
      throws SSLException {
    verifier.verify(hostname, cns, subjectAlts);
  }
}
origin: marklogic/java-client-api

 public void accept(Boolean resendable) {
  if (!isResendable) {
   checkFirstRequest();
   throw new ResourceNotResendableException(
    "Cannot retry request for " + path);
  }
 }
};
origin: com.marklogic/client-api-java

@Override
public void verify(String hostname, String[] cns, String[] subjectAlts) throws SSLException {
  throw new MarkLogicInternalException(
      "SSLHostnameVerifier.Builtin called directly instead of passed as parameter");
}
/**
origin: marklogic/java-client-api

@Override
public <T extends StructureReadHandle> T readStatus(T handle) {
 return realTransaction.readStatus(handle);
}
@Override
origin: marklogic/java-client-api

public static DatabaseClient newClient(String databaseName) {
 return DatabaseClientFactory.newClient(Common.HOST, Common.PORT, databaseName,
  new DatabaseClientFactory.DigestAuthContext(Common.USER, Common.PASS),
    CONNECTION_TYPE);
}
public static DatabaseClient newAdminClient() {
origin: marklogic/java-client-api

/**
 * Creates a client to access the database by means of a REST server
 * without any authentication. Such clients can be convenient for
 * experimentation but should not be used in production.
 *
 * @param host    the host with the REST server
 * @param port    the port for the REST server
 * @return    a new client for making database requests
 */
static public DatabaseClient newClient(String host, int port) {
 return newClient(host, port, null, null, null, null, null, null);
}
origin: org.talend.components/components-marklogic-runtime

@Override
public void close() throws IOException {
  if (!settings.isReferencedConnectionUsed) {
    connectionClient.release();
  }
}
origin: marklogic/marklogic-data-hub

public JobDeleteResource(DatabaseClient srcClient) {
  super();
  this.srcClient = srcClient;
  this.srcClient.init(DELETE_SERVICE, this);
}
origin: marklogic/java-client-api

 public void accept(Boolean resendable) {
  if (!isResendable) {
   checkFirstRequest();
   throw new ResourceNotResendableException("Cannot retry request for " + path);
  }
 }
};
origin: marklogic/java-client-api

public static DatabaseClient newReadOnlyClient() {
 return DatabaseClientFactory.newClient(
  Common.HOST, Common.PORT, new DigestAuthContext(Common.READ_ONLY_USER, Common.READ_ONLY_PASS),
    CONNECTION_TYPE);
}
origin: Talend/components

@Override
public void close() throws IOException {
  if (!settings.isReferencedConnectionUsed) {
    connectionClient.release();
  }
}
origin: marklogic/java-client-api

public static DatabaseClient newServerAdminClient() {
 return DatabaseClientFactory.newClient(
  Common.HOST, Common.PORT, new DigestAuthContext(Common.SERVER_ADMIN_USER, Common.SERVER_ADMIN_PASS),
    CONNECTION_TYPE);
}
public static DatabaseClient newEvalClient() {
origin: marklogic/java-client-api

public static DatabaseClient newEvalClient(String databaseName) {
 return DatabaseClientFactory.newClient(
  Common.HOST, Common.PORT, databaseName, new DigestAuthContext(Common.EVAL_USER, Common.EVAL_PASS),
    CONNECTION_TYPE);
}
public static DatabaseClient newReadOnlyClient() {
com.marklogic.client

Most used classes

  • DatabaseClient
    A Database Client instantiates document and query managers and other objects with shared access to a
  • StringHandle
    A String Handle represents document content as a string for reading or writing.
  • DatabaseClientFactory
    A Database Client Factory configures a database client for making database requests.
  • DOMHandle
    A DOM Handle represents XML content as a DOM document for reading or writing.
  • DocumentMetadataHandle$DocumentCollections
    A DocumentCollections represents the collections for a database document as a POJO (Plain Old Java O
  • QueryManager,
  • DatabaseClientFactory$DigestAuthContext,
  • EvalResult,
  • EvalResultIterator,
  • ServerEvaluationCall,
  • InputStreamHandle,
  • StringQueryDefinition,
  • StructuredQueryBuilder,
  • FailedRequestException,
  • DocumentWriteSet,
  • GenericDocumentManager,
  • BytesHandle,
  • DocumentMetadataHandle$DocumentPermissions,
  • FileHandle
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now