BAEL-7522-Rename-package-for-simple-web-server

This commit is contained in:
Sam Gardner 2024-02-19 13:16:43 +00:00
parent ce26271629
commit b8c2415745
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.simple_web_server;
package com.baeldung.simplewebserver;
import java.io.IOException;
import java.net.InetSocketAddress;
@ -20,7 +20,7 @@ public class WebServer {
public static void main(String[] args) {
WebServer webServer = new WebServer();
HttpServer server = webServer.createWithHandler_401Response();
HttpServer server = webServer.createWithHandler401Response();
server.start();
}
@ -35,7 +35,7 @@ public class WebServer {
return server;
}
private HttpServer createWithHandler_401Response() {
private HttpServer createWithHandler401Response() {
Predicate<Request> findAllowedPath = r -> r.getRequestURI()
.getPath()
.equals("/test/allowed");