All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.marklogic.mgmt.api.server.Server Maven / Gradle / Ivy

Go to download

Java client for the MarkLogic REST Management API and for deploying applications to MarkLogic

The newest version!
/*
 * Copyright (c) 2023 MarkLogic Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.marklogic.mgmt.api.server;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.marklogic.mgmt.api.API;
import com.marklogic.mgmt.api.Resource;
import com.marklogic.mgmt.api.group.ModuleLocation;
import com.marklogic.mgmt.api.group.Namespace;
import com.marklogic.mgmt.api.group.Schema;
import com.marklogic.mgmt.resource.ResourceManager;
import com.marklogic.mgmt.resource.appservers.ServerManager;

import jakarta.xml.bind.annotation.*;
import java.util.List;

@XmlAccessorType(XmlAccessType.FIELD)
public class Server extends Resource {

	@XmlElement(name = "server-name")
	private String serverName;

	@XmlElement(name = "server-type")
	private String serverType;

	@XmlElement(name = "group-name")
	private String groupName;

	private Boolean enabled;
	private String root;
	private Integer port;

	@XmlElement(name = "webDAV")
	private Boolean webDAV;

	private Boolean execute;

	@XmlElement(name = "modules-database")
	private String modulesDatabase;

	@XmlElement(name = "content-database")
	private String contentDatabase;

	@XmlElement(name = "last-login-database")
	private String lastLoginDatabase;

	@XmlElement(name = "display-last-login")
	private Boolean displayLastLogin;
	private String address;
	private Integer backlog;
	private Integer threads;

	@XmlElement(name = "request-timeout")
	private Integer requestTimeout;

	@XmlElement(name = "keep-alive-timeout")
	private Integer keepAliveTimeout;

	@XmlElement(name = "session-timeout")
	private Integer sessionTimeout;

	@XmlElement(name = "max-time-limit")
	private Integer maxTimeLimit;

	@XmlElement(name = "default-time-limit")
	private Integer defaultTimeLimit;

	@XmlElement(name = "max-inference-size")
	private Integer maxInferenceSize;

	@XmlElement(name = "default-inference-size")
	private Integer defaultInferenceSize;

	@XmlElement(name = "static-expires")
	private Integer staticExpires;

	@XmlElement(name = "pre-commit-trigger-depth")
	private Integer preCommitTriggerDepth;

	@XmlElement(name = "pre-commit-trigger-limit")
	private Integer preCommitTriggerLimit;
	private String collation;

	@XmlElement(name = "coordinate-system")
	private String coordinateSystem;
	private String authentication;

	@XmlElement(name = "internal-security")
	private Boolean internalSecurity;

	@XmlElementWrapper(name = "external-securities")
	@XmlElement(name = "external-security")
	private List externalSecurity;

	@XmlElement(name = "default-user")
	private String defaultUser;
	private String privilege;

	@XmlElement(name = "concurrent-request-limit")
	private Integer concurrentRequestLimit;

	@XmlElement(name = "compute-content-length")
	private Boolean computeContentLength;

	@XmlElement(name = "log-errors")
	private Boolean logErrors;

	@XmlElement(name = "debug-allow")
	private Boolean debugAllow;

	@XmlElement(name = "profile-allow")
	private Boolean profileAllow;

	@XmlElement(name = "default-xquery-version")
	private String defaultXqueryVersion;

	@XmlElement(name = "multi-version-concurrency-control")
	private String multiVersionConcurrencyControl;

	@XmlElement(name = "distribute-timestamps")
	private String distributeTimestamps;

	@XmlElement(name = "output-sgml-character-entities")
	private String outputSgmlCharacterEntities;

	@XmlElement(name = "output-encoding")
	private String outputEncoding;

	@XmlElement(name = "output-method")
	private String outputMethod;

	@XmlElement(name = "output-byte-order-mark")
	private String outputByteOrderMark;

	@XmlElement(name = "output-cdata-section-namespace-uri")
	private String outputCdataSectionNamespaceUri;

	@XmlElement(name = "output-cdata-section-localname")
	private String outputCdataSectionLocalname;

	@XmlElement(name = "output-doctype-public")
	private String outputDoctypePublic;

	@XmlElement(name = "output-doctype-system")
	private String outputDoctypeSystem;

	@XmlElement(name = "output-escape-uri-attributes")
	private String outputEscapeUriAttributes;

	@XmlElement(name = "output-include-content-type")
	private String outputIncludeContentType;

	@XmlElement(name = "output-indent")
	private String outputIndent;

	@XmlElement(name = "output-indent-untyped")
	private String outputIndentUntyped;

	@XmlElement(name = "output-indent-tabs")
	private String outputIndentTabs;

	@XmlElement(name = "output-media-type")
	private String outputMediaType;

	@XmlElement(name = "output-normalization-form")
	private String outputNormalizationForm;

	@XmlElement(name = "output-omit-xml-declaration")
	private String outputOmitXmlDeclaration;

	@XmlElement(name = "output-standalone")
	private String outputStandalone;

	@XmlElement(name = "output-undeclare-prefixes")
	private String outputUndeclarePrefixes;

	@XmlElement(name = "output-version")
	private String outputVersion;

	@XmlElement(name = "output-include-default-attributes")
	private String outputIncludeDefaultAttributes;

	@XmlElement(name = "default-error-format")
	private String defaultErrorFormat;

	@XmlElement(name = "error-handler")
	private String errorHandler;

	@XmlElementWrapper(name = "schemas")
	@XmlElement(name = "schema")
	private List schema;

	@XmlElementWrapper(name = "namespaces")
	@XmlElement(name = "namespace")
	private List namespace;

	@XmlElementWrapper(name = "using-namespaces")
	@XmlElement(name = "using-namespace")
	private List usingNamespace;

	@XmlElementWrapper(name = "module-locations")
	@XmlElement(name = "module-location")
	private List moduleLocation;

	@XmlElementWrapper(name = "request-blackouts")
	@XmlElement(name = "request-blackout")
	private List requestBlackout;

	@XmlElement(name = "url-rewriter")
	private String urlRewriter;

	@XmlElement(name = "rewrite-resolves-globally")
	private Boolean rewriteResolvesGlobally;

	@XmlElement(name = "ssl-certificate-template")
	private String sslCertificateTemplate;

	@XmlElement(name = "ssl-allow-sslv3")
	private Boolean sslAllowSslv3;

	@XmlElement(name = "ssl-allow-tls")
	private Boolean sslAllowTls;

	@XmlElement(name = "ssl-disable-sslv3")
	private Boolean sslDisableSslv3;

	@XmlElement(name = "ssl-disable-tlsv1")
	private Boolean sslDisableTlsv1;

	@XmlElement(name = "ssl-disable-tlsv1-1")
	@JsonProperty("ssl-disable-tlsv1-1")
	private Boolean sslDisableTlsv11;

	@XmlElement(name = "ssl-disable-tlsv1-2")
	@JsonProperty("ssl-disable-tlsv1-2")
	private Boolean sslDisableTlsv12;

	@XmlElement(name = "ssl-hostname")
	private String sslHostname;

	@XmlElement(name = "ssl-ciphers")
	private String sslCiphers;

	@XmlElement(name = "ssl-require-client-certificate")
	private Boolean sslRequireClientCertificate;

	@XmlElementWrapper(name = "ssl-client-certificate-authorities")
	@XmlElement(name = "ssl-client-certificate-authority")
	private List sslClientCertificateAuthority;

	@XmlElementWrapper(name = "ssl-client-certificate-pems")
	@XmlElement(name = "ssl-client-certificate-pem")
	private List sslClientCertificatePem;

	public Server() {
		super();
	}

	public Server(API api, String serverName) {
		super(api);
		this.serverName = serverName;
	}

	@Override
	protected ResourceManager getResourceManager() {
		String name = groupName != null ? groupName : "Default";
		return new ServerManager(getClient(), name);
	}

	@Override
	protected String getResourceId() {
		return serverName;
	}

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getServerType() {
		return serverType;
	}

	public void setServerType(String serverType) {
		this.serverType = serverType;
	}

	public Boolean getEnabled() {
		return enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	public String getRoot() {
		return root;
	}

	public void setRoot(String root) {
		this.root = root;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public Boolean getWebDAV() {
		return webDAV;
	}

	public void setWebDAV(Boolean webDAV) {
		this.webDAV = webDAV;
	}

	public Boolean getExecute() {
		return execute;
	}

	public void setExecute(Boolean execute) {
		this.execute = execute;
	}

	public Boolean getDisplayLastLogin() {
		return displayLastLogin;
	}

	public void setDisplayLastLogin(Boolean displayLastLogin) {
		this.displayLastLogin = displayLastLogin;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getBacklog() {
		return backlog;
	}

	public void setBacklog(Integer backlog) {
		this.backlog = backlog;
	}

	public Integer getThreads() {
		return threads;
	}

	public void setThreads(Integer threads) {
		this.threads = threads;
	}

	public Integer getRequestTimeout() {
		return requestTimeout;
	}

	public void setRequestTimeout(Integer requestTimeout) {
		this.requestTimeout = requestTimeout;
	}

	public Integer getKeepAliveTimeout() {
		return keepAliveTimeout;
	}

	public void setKeepAliveTimeout(Integer keepAliveTimeout) {
		this.keepAliveTimeout = keepAliveTimeout;
	}

	public Integer getSessionTimeout() {
		return sessionTimeout;
	}

	public void setSessionTimeout(Integer sessionTimeout) {
		this.sessionTimeout = sessionTimeout;
	}

	public Integer getMaxTimeLimit() {
		return maxTimeLimit;
	}

	public void setMaxTimeLimit(Integer maxTimeLimit) {
		this.maxTimeLimit = maxTimeLimit;
	}

	public Integer getDefaultTimeLimit() {
		return defaultTimeLimit;
	}

	public void setDefaultTimeLimit(Integer defaultTimeLimit) {
		this.defaultTimeLimit = defaultTimeLimit;
	}

	public Integer getMaxInferenceSize() {
		return maxInferenceSize;
	}

	public void setMaxInferenceSize(Integer maxInferenceSize) {
		this.maxInferenceSize = maxInferenceSize;
	}

	public Integer getDefaultInferenceSize() {
		return defaultInferenceSize;
	}

	public void setDefaultInferenceSize(Integer defaultInferenceSize) {
		this.defaultInferenceSize = defaultInferenceSize;
	}

	public Integer getStaticExpires() {
		return staticExpires;
	}

	public void setStaticExpires(Integer staticExpires) {
		this.staticExpires = staticExpires;
	}

	public Integer getPreCommitTriggerDepth() {
		return preCommitTriggerDepth;
	}

	public void setPreCommitTriggerDepth(Integer preCommitTriggerDepth) {
		this.preCommitTriggerDepth = preCommitTriggerDepth;
	}

	public Integer getPreCommitTriggerLimit() {
		return preCommitTriggerLimit;
	}

	public void setPreCommitTriggerLimit(Integer preCommitTriggerLimit) {
		this.preCommitTriggerLimit = preCommitTriggerLimit;
	}

	public String getCollation() {
		return collation;
	}

	public void setCollation(String collation) {
		this.collation = collation;
	}

	public Boolean getInternalSecurity() {
		return internalSecurity;
	}

	public void setInternalSecurity(Boolean internalSecurity) {
		this.internalSecurity = internalSecurity;
	}

	public Integer getConcurrentRequestLimit() {
		return concurrentRequestLimit;
	}

	public void setConcurrentRequestLimit(Integer concurrentRequestLimit) {
		this.concurrentRequestLimit = concurrentRequestLimit;
	}

	public Boolean getComputeContentLength() {
		return computeContentLength;
	}

	public void setComputeContentLength(Boolean computeContentLength) {
		this.computeContentLength = computeContentLength;
	}

	public Boolean getLogErrors() {
		return logErrors;
	}

	public void setLogErrors(Boolean logErrors) {
		this.logErrors = logErrors;
	}

	public Boolean getDebugAllow() {
		return debugAllow;
	}

	public void setDebugAllow(Boolean debugAllow) {
		this.debugAllow = debugAllow;
	}

	public Boolean getProfileAllow() {
		return profileAllow;
	}

	public void setProfileAllow(Boolean profileAllow) {
		this.profileAllow = profileAllow;
	}

	public String getDefaultXqueryVersion() {
		return defaultXqueryVersion;
	}

	public void setDefaultXqueryVersion(String defaultXqueryVersion) {
		this.defaultXqueryVersion = defaultXqueryVersion;
	}

	public String getMultiVersionConcurrencyControl() {
		return multiVersionConcurrencyControl;
	}

	public void setMultiVersionConcurrencyControl(String multiVersionConcurrencyControl) {
		this.multiVersionConcurrencyControl = multiVersionConcurrencyControl;
	}

	public String getDistributeTimestamps() {
		return distributeTimestamps;
	}

	public void setDistributeTimestamps(String distributeTimestamps) {
		this.distributeTimestamps = distributeTimestamps;
	}

	public String getOutputSgmlCharacterEntities() {
		return outputSgmlCharacterEntities;
	}

	public void setOutputSgmlCharacterEntities(String outputSgmlCharacterEntities) {
		this.outputSgmlCharacterEntities = outputSgmlCharacterEntities;
	}

	public String getOutputEncoding() {
		return outputEncoding;
	}

	public void setOutputEncoding(String outputEncoding) {
		this.outputEncoding = outputEncoding;
	}

	public String getOutputMethod() {
		return outputMethod;
	}

	public void setOutputMethod(String outputMethod) {
		this.outputMethod = outputMethod;
	}

	public String getOutputByteOrderMark() {
		return outputByteOrderMark;
	}

	public void setOutputByteOrderMark(String outputByteOrderMark) {
		this.outputByteOrderMark = outputByteOrderMark;
	}

	public String getOutputCdataSectionNamespaceUri() {
		return outputCdataSectionNamespaceUri;
	}

	public void setOutputCdataSectionNamespaceUri(String outputCdataSectionNamespaceUri) {
		this.outputCdataSectionNamespaceUri = outputCdataSectionNamespaceUri;
	}

	public String getOutputCdataSectionLocalname() {
		return outputCdataSectionLocalname;
	}

	public void setOutputCdataSectionLocalname(String outputCdataSectionLocalname) {
		this.outputCdataSectionLocalname = outputCdataSectionLocalname;
	}

	public String getOutputDoctypePublic() {
		return outputDoctypePublic;
	}

	public void setOutputDoctypePublic(String outputDoctypePublic) {
		this.outputDoctypePublic = outputDoctypePublic;
	}

	public String getOutputDoctypeSystem() {
		return outputDoctypeSystem;
	}

	public void setOutputDoctypeSystem(String outputDoctypeSystem) {
		this.outputDoctypeSystem = outputDoctypeSystem;
	}

	public String getOutputEscapeUriAttributes() {
		return outputEscapeUriAttributes;
	}

	public void setOutputEscapeUriAttributes(String outputEscapeUriAttributes) {
		this.outputEscapeUriAttributes = outputEscapeUriAttributes;
	}

	public String getOutputIncludeContentType() {
		return outputIncludeContentType;
	}

	public void setOutputIncludeContentType(String outputIncludeContentType) {
		this.outputIncludeContentType = outputIncludeContentType;
	}

	public String getOutputIndent() {
		return outputIndent;
	}

	public void setOutputIndent(String outputIndent) {
		this.outputIndent = outputIndent;
	}

	public String getOutputIndentUntyped() {
		return outputIndentUntyped;
	}

	public void setOutputIndentUntyped(String outputIndentUntyped) {
		this.outputIndentUntyped = outputIndentUntyped;
	}

	public String getOutputIndentTabs() {
		return outputIndentTabs;
	}

	public void setOutputIndentTabs(String outputIndentTabs) {
		this.outputIndentTabs = outputIndentTabs;
	}

	public String getOutputMediaType() {
		return outputMediaType;
	}

	public void setOutputMediaType(String outputMediaType) {
		this.outputMediaType = outputMediaType;
	}

	public String getOutputNormalizationForm() {
		return outputNormalizationForm;
	}

	public void setOutputNormalizationForm(String outputNormalizationForm) {
		this.outputNormalizationForm = outputNormalizationForm;
	}

	public String getOutputOmitXmlDeclaration() {
		return outputOmitXmlDeclaration;
	}

	public void setOutputOmitXmlDeclaration(String outputOmitXmlDeclaration) {
		this.outputOmitXmlDeclaration = outputOmitXmlDeclaration;
	}

	public String getOutputStandalone() {
		return outputStandalone;
	}

	public void setOutputStandalone(String outputStandalone) {
		this.outputStandalone = outputStandalone;
	}

	public String getOutputUndeclarePrefixes() {
		return outputUndeclarePrefixes;
	}

	public void setOutputUndeclarePrefixes(String outputUndeclarePrefixes) {
		this.outputUndeclarePrefixes = outputUndeclarePrefixes;
	}

	public String getOutputVersion() {
		return outputVersion;
	}

	public void setOutputVersion(String outputVersion) {
		this.outputVersion = outputVersion;
	}

	public String getOutputIncludeDefaultAttributes() {
		return outputIncludeDefaultAttributes;
	}

	public void setOutputIncludeDefaultAttributes(String outputIncludeDefaultAttributes) {
		this.outputIncludeDefaultAttributes = outputIncludeDefaultAttributes;
	}

	public String getDefaultErrorFormat() {
		return defaultErrorFormat;
	}

	public void setDefaultErrorFormat(String defaultErrorFormat) {
		this.defaultErrorFormat = defaultErrorFormat;
	}

	public String getErrorHandler() {
		return errorHandler;
	}

	public void setErrorHandler(String errorHandler) {
		this.errorHandler = errorHandler;
	}

	public String getUrlRewriter() {
		return urlRewriter;
	}

	public void setUrlRewriter(String urlRewriter) {
		this.urlRewriter = urlRewriter;
	}

	public Boolean getRewriteResolvesGlobally() {
		return rewriteResolvesGlobally;
	}

	public void setRewriteResolvesGlobally(Boolean rewriteResolvesGlobally) {
		this.rewriteResolvesGlobally = rewriteResolvesGlobally;
	}

	public Boolean getSslAllowSslv3() {
		return sslAllowSslv3;
	}

	public void setSslAllowSslv3(Boolean sslAllowSslv3) {
		this.sslAllowSslv3 = sslAllowSslv3;
	}

	public Boolean getSslAllowTls() {
		return sslAllowTls;
	}

	public void setSslAllowTls(Boolean sslAllowTls) {
		this.sslAllowTls = sslAllowTls;
	}

	public String getSslHostname() {
		return sslHostname;
	}

	public void setSslHostname(String sslHostname) {
		this.sslHostname = sslHostname;
	}

	public String getSslCiphers() {
		return sslCiphers;
	}

	public void setSslCiphers(String sslCiphers) {
		this.sslCiphers = sslCiphers;
	}

	public Boolean getSslRequireClientCertificate() {
		return sslRequireClientCertificate;
	}

	public void setSslRequireClientCertificate(Boolean sslRequireClientCertificate) {
		this.sslRequireClientCertificate = sslRequireClientCertificate;
	}

	public String getContentDatabase() {
		return contentDatabase;
	}

	public void setContentDatabase(String contentDatabase) {
		this.contentDatabase = contentDatabase;
	}

	public String getModulesDatabase() {
		return modulesDatabase;
	}

	public void setModulesDatabase(String modulesDatabase) {
		this.modulesDatabase = modulesDatabase;
	}

	public String getDefaultUser() {
		return defaultUser;
	}

	public void setDefaultUser(String defaultUser) {
		this.defaultUser = defaultUser;
	}

	public String getAuthentication() {
		return authentication;
	}

	public void setAuthentication(String authentication) {
		this.authentication = authentication;
	}

	public String getPrivilege() {
		return privilege;
	}

	public void setPrivilege(String privilege) {
		this.privilege = privilege;
	}

	public String getLastLoginDatabase() {
		return lastLoginDatabase;
	}

	public void setLastLoginDatabase(String lastLoginDatabase) {
		this.lastLoginDatabase = lastLoginDatabase;
	}

	public String getCoordinateSystem() {
		return coordinateSystem;
	}

	public void setCoordinateSystem(String coordinateSystem) {
		this.coordinateSystem = coordinateSystem;
	}

	public List getExternalSecurity() {
		return externalSecurity;
	}

	public void setExternalSecurity(List externalSecurity) {
		this.externalSecurity = externalSecurity;
	}

	public List getSchema() {
		return schema;
	}

	public void setSchema(List schema) {
		this.schema = schema;
	}

	public List getNamespace() {
		return namespace;
	}

	public void setNamespace(List namespace) {
		this.namespace = namespace;
	}

	public List getUsingNamespace() {
		return usingNamespace;
	}

	public void setUsingNamespace(List usingNamespace) {
		this.usingNamespace = usingNamespace;
	}

	public List getModuleLocation() {
		return moduleLocation;
	}

	public void setModuleLocation(List moduleLocation) {
		this.moduleLocation = moduleLocation;
	}

	public List getRequestBlackout() {
		return requestBlackout;
	}

	public void setRequestBlackout(List requestBlackout) {
		this.requestBlackout = requestBlackout;
	}

	public Boolean getSslDisableSslv3() {
		return sslDisableSslv3;
	}

	public void setSslDisableSslv3(Boolean sslDisableSslv3) {
		this.sslDisableSslv3 = sslDisableSslv3;
	}

	public Boolean getSslDisableTlsv1() {
		return sslDisableTlsv1;
	}

	public void setSslDisableTlsv1(Boolean sslDisableTlsv1) {
		this.sslDisableTlsv1 = sslDisableTlsv1;
	}

	public Boolean getSslDisableTlsv11() {
		return sslDisableTlsv11;
	}

	public void setSslDisableTlsv11(Boolean sslDisableTlsv11) {
		this.sslDisableTlsv11 = sslDisableTlsv11;
	}

	public Boolean getSslDisableTlsv12() {
		return sslDisableTlsv12;
	}

	public void setSslDisableTlsv12(Boolean sslDisableTlsv12) {
		this.sslDisableTlsv12 = sslDisableTlsv12;
	}

	public List getSslClientCertificateAuthority() {
		return sslClientCertificateAuthority;
	}

	public void setSslClientCertificateAuthority(List sslClientCertificateAuthority) {
		this.sslClientCertificateAuthority = sslClientCertificateAuthority;
	}

	public List getSslClientCertificatePem() {
		return sslClientCertificatePem;
	}

	public void setSslClientCertificatePem(List sslClientCertificatePem) {
		this.sslClientCertificatePem = sslClientCertificatePem;
	}

	public String getSslCertificateTemplate() {
		return sslCertificateTemplate;
	}

	public void setSslCertificateTemplate(String sslCertificateTemplate) {
		this.sslCertificateTemplate = sslCertificateTemplate;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy