private Server.Config _buildConfig() { Builder builder = this; if (_config.ports().isEmpty()) { builder = this._protocol(Protocol.HTTP, 0); } return builder._config; }
private Server.Config _buildConfig() { Builder builder = this; if (_config.ports().isEmpty()) { builder = this._protocol(Protocol.HTTP, 0); } return builder._config; }
/** * Configure the server to serve HTTPS on a particular port. * * Passing 0 will make it serve on a random available port. * * @param port the port on which to serve ssl traffic * @return the builder with port set. */ public Builder https(int port) { return _protocol(Protocol.HTTPS, port); }
/** * Instruct the server to serve HTTP on a particular port. * * Passing 0 will make it serve on a random available port. * * @param port the port on which to serve http traffic * @return the builder with port set. */ public Builder http(int port) { return _protocol(Protocol.HTTP, port); }
/** * Instruct the server to serve HTTP on a particular port. * * Passing 0 will make it serve on a random available port. * * @param port the port on which to serve http traffic * @return the builder with port set. */ public Builder http(int port) { return _protocol(Protocol.HTTP, port); }
/** * Configure the server to serve HTTPS on a particular port. * * Passing 0 will make it serve on a random available port. * * @param port the port on which to serve ssl traffic * @return the builder with port set. */ public Builder https(int port) { return _protocol(Protocol.HTTPS, port); }