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
{
14 public String
getContentType() {
18 @SuppressWarnings("unchecked")
19 public void render(Map arg0
, HttpServletRequest arg1
, HttpServletResponse response
) throws Exception
{
20 response
.setContentType(getContentType());
21 response
.setCharacterEncoding("UTF-8");
22 Writer out
= response
.getWriter();
23 out
.append("<html><head><title>").append(arg0
.get("title").toString()).append("</title></head><body>");
24 out
.append(arg0
.get("body").toString());
25 out
.append("<body></html>");
26 response
.flushBuffer();