work in progress

This commit is contained in:
2022-04-15 13:55:40 -05:00
parent b4ab3b609a
commit 7550db5fb0
5 changed files with 34 additions and 21 deletions

View File

@ -79,6 +79,16 @@ public class AbstractServlet extends HttpServlet
});
}
public String createBasicHTML(String title, String body)
{
return "<html><head><title>" + title + "</title></head><body>" + body + "</body></html>";
}
public String createJSONHTML(String title, String json)
{
return "<html><head><title>" + title + "</title></head><body><pre><code>" + json + "</code></pre></body></html>";
}
@Data
public static class Mapping
{