mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2025-07-15 02:58:34 +00:00
work in progress
This commit is contained in:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user