001 package com.khubla.pragmatach.plugin.jasper; 002 003 import java.util.Map; 004 005 import javax.servlet.http.HttpServletResponse; 006 007 import com.khubla.pragmatach.framework.api.PragmatachException; 008 import com.khubla.pragmatach.framework.controller.impl.AbstractResponse; 009 010 /** 011 * @author tome 012 */ 013 public class JasperResponse extends AbstractResponse { 014 public JasperResponse(Map<String, String> cacheHeaders, String templateName, String template, Map<String, Object> context) { 015 super(cacheHeaders); 016 } 017 018 @Override 019 public String getContentType() throws PragmatachException { 020 return CONTENT_TYPE_HTML; 021 } 022 023 @Override 024 public Map<String, String> getHeaders() throws PragmatachException { 025 return super.getCacheHeaders(); 026 } 027 028 @Override 029 public void render(HttpServletResponse httpServletResponse) throws PragmatachException { 030 try { 031 } catch (final Exception e) { 032 throw new PragmatachException("Exception in render", e); 033 } 034 } 035 }