public RestServerEndpoint(RestServerEndpointConfiguration configuration) throws IOException { Preconditions.checkNotNull(configuration); this.restAddress = configuration.getRestAddress(); this.restBindAddress = configuration.getRestBindAddress(); this.restBindPort = configuration.getRestBindPort(); this.sslHandlerFactory = configuration.getSslHandlerFactory(); this.uploadDir = configuration.getUploadDir(); createUploadDir(uploadDir, log); this.maxContentLength = configuration.getMaxContentLength(); this.responseHeaders = configuration.getResponseHeaders(); terminationFuture = new CompletableFuture<>(); }
public RestServerEndpoint(RestServerEndpointConfiguration configuration) throws IOException { Preconditions.checkNotNull(configuration); this.restAddress = configuration.getRestAddress(); this.restBindAddress = configuration.getRestBindAddress(); this.restBindPort = configuration.getRestBindPort(); this.sslHandlerFactory = configuration.getSslHandlerFactory(); this.uploadDir = configuration.getUploadDir(); createUploadDir(uploadDir, log); this.maxContentLength = configuration.getMaxContentLength(); this.responseHeaders = configuration.getResponseHeaders(); terminationFuture = new CompletableFuture<>(); }