44import com .optimaize .anythingworks .client .rest .RestKeys ;
55import com .optimaize .anythingworks .client .rest .RestPortUrlFactory ;
66import com .optimaize .anythingworks .common .host .Host ;
7+ import com .optimaize .anythingworks .common .host .Protocol ;
78import com .optimaize .command4j .Mode ;
89import org .jetbrains .annotations .NotNull ;
910import org .nameapi .ontology5 .input .context .Context ;
1516 */
1617public class NameApiModeFactory {
1718
18- private static final Host DEFAULT_HOST = new Host ("api.nameapi.org" , 80 );
19+ private static final Host DEFAULT_HOST = new Host ("api.nameapi.org" , Protocol . HTTPS );
1920 private static final NameApiPortUrlFactory DEFAULT_PORT_FACTORY = NameApiPortUrlFactory .versionLatestStable ();
2021
2122
@@ -25,7 +26,7 @@ public class NameApiModeFactory {
2526 * <p>Example: .with(StdoutLoggingExtension.enabled())</p>
2627 *
2728 * @param apiKey Your personal api key from registering with us.
28- * @param host for example {@code new Host("api.nameapi.org", 80 )}
29+ * @param host for example {@code new Host("api.nameapi.org", Protocol.HTTPS )}
2930 * @param portUrlFactory for example {@code NameApiPortUrlFactory.versionLatestStable()}
3031 */
3132 @ NotNull
@@ -39,7 +40,7 @@ public static Mode minimal(@NotNull String apiKey, @NotNull Host host, @NotNull
3940
4041 /**
4142 * Overloaded method that uses
42- * for host: {@code new Host("api.nameapi.org", 80 )}
43+ * for host: {@code new Host("api.nameapi.org", Protocol.HTTPS )}
4344 * for port url: {@code NameApiPortUrlFactory.versionLatestStable()}
4445 */
4546 @ NotNull
@@ -55,7 +56,7 @@ public static Mode minimal(@NotNull String apiKey) {
5556 *
5657 * @param apiKey Your personal api key from registering with us.
5758 * @param context for example {@code new ContextBuilder().priority(Priority.REALTIME).build()}
58- * @param host for example {@code new Host("api.nameapi.org", 80 )}
59+ * @param host for example {@code new Host("api.nameapi.org", Protocol.HTTPS )}
5960 * @param portUrlFactory for example {@code NameApiPortUrlFactory.versionLatestStable()}
6061 */
6162 @ NotNull
@@ -65,8 +66,8 @@ public static Mode withContext(@NotNull String apiKey, @NotNull Context context,
6566 }
6667
6768 /**
68- * Overloaded method that uses
69- * for host: {@code new Host("api.nameapi.org", 80 )}
69+ * Overloaded method that uses:
70+ * for host: {@code new Host("api.nameapi.org", Protocol.HTTPS )}
7071 * for port url: {@code NameApiPortUrlFactory.versionLatestStable()}
7172 */
7273 @ NotNull
0 commit comments