Package org.flasby.thymeleaf
Class WebServer
java.lang.Object
org.flasby.thymeleaf.SimpleServer
org.flasby.thymeleaf.WebServer
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getFileName
(URI request) parse the incoming headers and put them in a suitable map.static WebServer.Request
void
sendResponse
(@NonNull WebServer.Request req, OutputStream os) Methods inherited from class org.flasby.thymeleaf.SimpleServer
getPort, start
-
Constructor Details
-
WebServer
- Throws:
IOException
-
-
Method Details
-
sendResponse
public void sendResponse(@NonNull @NonNull WebServer.Request req, OutputStream os) throws IOException - Throws:
IOException
-
parseRequest
- Throws:
IOException
-
parseHeaders
parse the incoming headers and put them in a suitable map. Note that this is an incomplete implementation as the same header can e present multiple times on a request.- Throws:
IOException
-
getFileName
-