UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 1.97 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LogFileConfiguration = void 0; class LogFileConfiguration { constructor(data) { let debugModeDefault = "none"; this.debugMode = typeof (data === null || data === void 0 ? void 0 : data.debugMode) !== "undefined" ? data === null || data === void 0 ? void 0 : data.debugMode : debugModeDefault; let log4j2XmlDefault = ""; this.log4j2Xml = typeof (data === null || data === void 0 ? void 0 : data.log4j2Xml) !== "undefined" ? data === null || data === void 0 ? void 0 : data.log4j2Xml : log4j2XmlDefault; let updateXmlDefault = false; this.updateXml = typeof (data === null || data === void 0 ? void 0 : data.updateXml) !== "undefined" ? data === null || data === void 0 ? void 0 : data.updateXml : updateXmlDefault; } static getDebugModeDefault() { return "none"; } static getDebugModeDescription() { return ""; } static getLog4j2XmlDefault() { return ""; } static getLog4j2XmlDescription() { return "Current content or content to be written to the server's log4j2.xml configuration file."; } static getUpdateXmlDefault() { return false; } static getUpdateXmlDescription() { return "If true, then the content specified in the `log4j2Xml` attribute is written to the server's \"log4j2.xml\" configuration file."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new LogFileConfiguration(data); } toJson() { return { 'debugMode': this.debugMode, 'log4j2Xml': this.log4j2Xml, 'updateXml': this.updateXml, }; } clone() { return LogFileConfiguration.fromJson(this.toJson()); } } exports.LogFileConfiguration = LogFileConfiguration; //# sourceMappingURL=LogFileConfiguration.js.map