}
/**
+ * Adds the given port numbers to the list of unencrypted port numbers.
+ *
+ * @param ports
+ * The port numbers to add
+ * @return This server builder
+ */
+ public ServerBuilder ports(int... ports) {
+ for (int port : ports) {
+ unencryptedPorts.add(port);
+ }
+ return this;
+ }
+
+ /**
* Adds the given port number to the list of encrypted port numbers.
*
* @param sslPort
}
/**
+ * Adds the given port numbers to the list of encrypted port numbers.
+ *
+ * @param sslPorts
+ * The port numbers to add
+ * @return This server builder
+ */
+ public ServerBuilder sslPorts(int... sslPorts) {
+ for (int sslPort : sslPorts) {
+ encryptedPorts.add(sslPort);
+ }
+ return this;
+ }
+
+ /**
* Builds the server, adds it to the parent network builder and returns the
* network builder.
*