From 0c4beeacd623a3f2ca121d7657fa29320e0e61f5 Mon Sep 17 00:00:00 2001 From: mathias Date: Mon, 4 Oct 2021 15:41:11 +0200 Subject: [PATCH] Added the setPort example in the BasicAuthenticationExample --- src/examples/java/BasicAuthenticationExample.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/examples/java/BasicAuthenticationExample.java b/src/examples/java/BasicAuthenticationExample.java index 8cc1ee9..078e398 100644 --- a/src/examples/java/BasicAuthenticationExample.java +++ b/src/examples/java/BasicAuthenticationExample.java @@ -8,6 +8,9 @@ public class BasicAuthenticationExample { // Create an instance of the SimpleAutoResponder SimpleAutoResponder autoResponder = new SimpleAutoResponder(); + // If you want to, you can also set the port of the webserver (default: 8025) + autoResponder.setPort(8031); + // Set your username & password autoResponder.useAuthentication("username", "password");