PageRenderTime 15ms CodeModel.GetById 8ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/plugin-module-codegen-engine/src/main/resources/templates/common/servlet/Servlet.java.vtl

https://bitbucket.org/mmeinhold/amps
Unknown | 22 lines | 17 code | 5 blank | 0 comment | 0 complexity | 6f6294cb4490e8b24a39bddd1d48a337 MD5 | raw file
 1package ${PACKAGE};
 2
 3import org.slf4j.Logger;
 4import org.slf4j.LoggerFactory;
 5
 6import javax.servlet.*;
 7import javax.servlet.http.HttpServlet;
 8import javax.servlet.http.HttpServletRequest;
 9import javax.servlet.http.HttpServletResponse;
10import java.io.IOException;
11
12public class ${CLASSNAME} extends HttpServlet{
13    private static final Logger log = LoggerFactory.getLogger(${CLASSNAME}.class);
14
15    @Override
16    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
17    {
18        resp.setContentType("text/html");
19        resp.getWriter().write("<html><body>Hello World</body></html>");
20    }
21
22}