@Override public HTTPServerConfig setMaxConnectionBits(int bits) { configStage.throwIfNot(BridgeConfigStage.DeclareConnections); if (bits<1) { throw new UnsupportedOperationException("Must support at least 1 connection"); } if (bits>30) { throw new UnsupportedOperationException("Can not support "+(1L<<bits)+" connections"); } this.maxConnectionBits = bits; return this; }
@Override public HTTPServerConfig setConcurrentChannelsPerDecryptUnit(int value) { configStage.throwIfNot(BridgeConfigStage.DeclareConnections); this.concurrentChannelsPerDecryptUnit = value; return this; }
@Override public HTTPServerConfig setConcurrentChannelsPerEncryptUnit(int value) { configStage.throwIfNot(BridgeConfigStage.DeclareConnections); this.concurrentChannelsPerEncryptUnit = value; return this; }
@Override public HTTPServerConfig setTLS(TLSCertificates certificates) { configStage.throwIfNot(BridgeConfigStage.DeclareConnections); assert(null != certificates); this.serverTLS = certificates; return this; }
@Override public HTTPServerConfig setDecryptionUnitsPerTrack(int value) { configStage.throwIfNot(BridgeConfigStage.DeclareConnections); this.decryptionUnitsPerTrack = value; return this; }
@Override public HTTPServerConfig setHost(String host) { configStage.throwIfNot(BridgeConfigStage.DeclareConnections); this.bindHost = host; return this; }
@Override public HTTPServerConfig setEncryptionUnitsPerTrack(int value) { configStage.throwIfNot(BridgeConfigStage.DeclareConnections); this.encryptionUnitsPerTrack = value; return this; }
@Override public HTTPServerConfig useInsecureServer() { configStage.throwIfNot(BridgeConfigStage.DeclareConnections); this.serverTLS = null; return this; }
@Override public HTTPServerConfig setDefaultPath(String defaultPath) { configStage.throwIfNot(BridgeConfigStage.DeclareConnections); assert(null != defaultPath); this.defaultHostPath = defaultPath; return this; }