public class ViewerServlet extends AbstractServlet
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_TEMPLATE_BODY |
static String |
PROPERTY_TEMPLATE_FOOTER |
static String |
PROPERTY_TEMPLATE_HEADER |
EXCEPTION_MESSAGE_KEY_PAGE_NOT_FOUND, EXCEPTION_MESSAGE_KEY_REPORT_GENERATION_ERROR, EXCEPTION_MESSAGE_KEY_REPORT_NOT_FOUND, HTML_ACCEPT_HEADER, HTML_CONTENT_TYPE, JSON_ACCEPT_HEADER, JSON_CONTENT_TYPE
Constructor and Description |
---|
ViewerServlet() |
Modifier and Type | Method and Description |
---|---|
protected String |
getBody(javax.servlet.http.HttpServletRequest request,
WebReportContext webReportContext) |
String |
getBodyTemplate() |
protected String |
getFooter() |
String |
getFooterTemplate() |
protected String |
getHeader(javax.servlet.http.HttpServletRequest request,
WebReportContext webReportContext) |
String |
getHeaderTemplate() |
void |
init() |
void |
render(javax.servlet.http.HttpServletRequest request,
WebReportContext webReportContext,
PrintWriter writer) |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
getJasperReportsContext, setJasperReportsContext, setNoExpire
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public static final String PROPERTY_TEMPLATE_HEADER
public static final String PROPERTY_TEMPLATE_BODY
public static final String PROPERTY_TEMPLATE_FOOTER
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public String getHeaderTemplate()
public String getBodyTemplate()
public String getFooterTemplate()
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
service
in class javax.servlet.http.HttpServlet
IOException
javax.servlet.ServletException
public void render(javax.servlet.http.HttpServletRequest request, WebReportContext webReportContext, PrintWriter writer)
protected String getHeader(javax.servlet.http.HttpServletRequest request, WebReportContext webReportContext)
protected String getBody(javax.servlet.http.HttpServletRequest request, WebReportContext webReportContext)
protected String getFooter()
Copyright © 2016. All rights reserved.