Newer
Older
simple-jdbc-stats / src / nl / astraeus / jdbc / web / page / TemplatePage.java
rnentjes 28 days ago 666 bytes New version with mustache and nanohttpd
package nl.astraeus.jdbc.web.page;

import java.io.OutputStream;

public class TemplatePage {

    private String contentType  = "text/html";
    private int    responseCode = 200;

    public void setHeader(String name, String value) {

    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
    public void sendResponse(int code) {
        responseCode = code;
    }

    public void get() {
        sendResponse(501);
    }

    public void post() {
        sendResponse(501);
    }

    public void render(OutputStream out) {

    }

    private String getParameter(String queries) {
        return "";
    }
}