2 package eu
.etaxonomy
.cdm
.remote
.view
;
7 import javax
.servlet
.http
.HttpServletRequest
;
8 import javax
.servlet
.http
.HttpServletResponse
;
10 import org
.springframework
.web
.servlet
.View
;
12 public class HtmlView
implements View
{
15 public String
getContentType() {
19 @SuppressWarnings("unchecked")
20 public void render(Map arg0
, HttpServletRequest arg1
, HttpServletResponse response
) throws Exception
{
21 response
.setContentType(getContentType());
22 response
.setCharacterEncoding("UTF-8");
23 Writer out
= response
.getWriter();
24 out
.append("<html><head><title>").append(arg0
.get("title").toString()).append("</title></head><body>");
25 out
.append(arg0
.get("body").toString());
26 out
.append("<body></html>");
27 response
.flushBuffer();