/** * Copy constructor * * @param other the options to copy */ public TCPSSLOptions(TCPSSLOptions other) { super(other); this.tcpNoDelay = other.isTcpNoDelay(); this.tcpKeepAlive = other.isTcpKeepAlive(); this.soLinger = other.getSoLinger(); this.usePooledBuffers = other.isUsePooledBuffers(); this.idleTimeout = other.getIdleTimeout(); this.idleTimeoutUnit = other.getIdleTimeoutUnit() != null ? other.getIdleTimeoutUnit() : DEFAULT_IDLE_TIMEOUT_TIME_UNIT; this.ssl = other.isSsl(); this.keyCertOptions = other.getKeyCertOptions() != null ? other.getKeyCertOptions().clone() : null; this.trustOptions = other.getTrustOptions() != null ? other.getTrustOptions().clone() : null; this.enabledCipherSuites = other.getEnabledCipherSuites() == null ? new LinkedHashSet<>() : new LinkedHashSet<>(other.getEnabledCipherSuites()); this.crlPaths = new ArrayList<>(other.getCrlPaths()); this.crlValues = new ArrayList<>(other.getCrlValues()); this.useAlpn = other.useAlpn; this.sslEngineOptions = other.sslEngineOptions != null ? other.sslEngineOptions.clone() : null; this.enabledSecureTransportProtocols = other.getEnabledSecureTransportProtocols() == null ? new LinkedHashSet<>() : new LinkedHashSet<>(other.getEnabledSecureTransportProtocols()); this.tcpFastOpen = other.isTcpFastOpen(); this.tcpCork = other.isTcpCork(); this.tcpQuickAck = other.isTcpQuickAck(); }
json.put("enabledSecureTransportProtocols", array); json.put("idleTimeout", obj.getIdleTimeout()); if (obj.getIdleTimeoutUnit() != null) { json.put("idleTimeoutUnit", obj.getIdleTimeoutUnit().name());
/** * Copy constructor * * @param other the options to copy */ public TCPSSLOptions(TCPSSLOptions other) { super(other); this.tcpNoDelay = other.isTcpNoDelay(); this.tcpKeepAlive = other.isTcpKeepAlive(); this.soLinger = other.getSoLinger(); this.usePooledBuffers = other.isUsePooledBuffers(); this.idleTimeout = other.getIdleTimeout(); this.idleTimeoutUnit = other.getIdleTimeoutUnit() != null ? other.getIdleTimeoutUnit() : DEFAULT_IDLE_TIMEOUT_TIME_UNIT; this.ssl = other.isSsl(); this.keyCertOptions = other.getKeyCertOptions() != null ? other.getKeyCertOptions().clone() : null; this.trustOptions = other.getTrustOptions() != null ? other.getTrustOptions().clone() : null; this.enabledCipherSuites = other.getEnabledCipherSuites() == null ? new LinkedHashSet<>() : new LinkedHashSet<>(other.getEnabledCipherSuites()); this.crlPaths = new ArrayList<>(other.getCrlPaths()); this.crlValues = new ArrayList<>(other.getCrlValues()); this.useAlpn = other.useAlpn; this.sslEngineOptions = other.sslEngineOptions != null ? other.sslEngineOptions.clone() : null; this.enabledSecureTransportProtocols = other.getEnabledSecureTransportProtocols() == null ? new LinkedHashSet<>() : new LinkedHashSet<>(other.getEnabledSecureTransportProtocols()); this.tcpFastOpen = other.isTcpFastOpen(); this.tcpCork = other.isTcpCork(); this.tcpQuickAck = other.isTcpQuickAck(); }
json.put("enabledSecureTransportProtocols", array); json.put("idleTimeout", obj.getIdleTimeout()); if (obj.getIdleTimeoutUnit() != null) { json.put("idleTimeoutUnit", obj.getIdleTimeoutUnit().name());