net.sf.jasperreports.web.servlets
Class ViewerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.sf.jasperreports.web.servlets.AbstractServlet
              extended by net.sf.jasperreports.web.servlets.ViewerServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ViewerServlet
extends AbstractServlet

Version:
$Id: ViewerServlet.java 5394 2012-05-20 21:47:15Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
static String PROPERTY_TEMPLATE_BODY
           
static String PROPERTY_TEMPLATE_FOOTER
           
static String PROPERTY_TEMPLATE_HEADER
           
static String PROPERTY_VIEWER_TOOLBAR_JS
           
 
Constructor Summary
ViewerServlet()
           
 
Method Summary
protected  String getBody(javax.servlet.http.HttpServletRequest request, WebReportContext webReportContext, String toolbarId)
           
 String getBodyTemplate()
           
protected  String getCurrentUrl(javax.servlet.http.HttpServletRequest request, WebReportContext webReportContext)
           
protected  String getFooter()
           
 String getFooterTemplate()
           
protected  String getHeader(javax.servlet.http.HttpServletRequest request, WebReportContext webReportContext, String toolbarId)
           
 String getHeaderTemplate()
           
 String getToolbarJavascript()
           
 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)
           
 
Methods inherited from class net.sf.jasperreports.web.servlets.AbstractServlet
getJasperReportsContext, setJasperReportsContext
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_TEMPLATE_HEADER

public static final String PROPERTY_TEMPLATE_HEADER
See Also:
Constant Field Values

PROPERTY_TEMPLATE_BODY

public static final String PROPERTY_TEMPLATE_BODY
See Also:
Constant Field Values

PROPERTY_TEMPLATE_FOOTER

public static final String PROPERTY_TEMPLATE_FOOTER
See Also:
Constant Field Values

PROPERTY_VIEWER_TOOLBAR_JS

public static final String PROPERTY_VIEWER_TOOLBAR_JS
See Also:
Constant Field Values
Constructor Detail

ViewerServlet

public ViewerServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

getHeaderTemplate

public String getHeaderTemplate()

getBodyTemplate

public String getBodyTemplate()

getFooterTemplate

public String getFooterTemplate()

getToolbarJavascript

public String getToolbarJavascript()

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws IOException,
                    javax.servlet.ServletException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
IOException
javax.servlet.ServletException

render

public void render(javax.servlet.http.HttpServletRequest request,
                   WebReportContext webReportContext,
                   PrintWriter writer)

getCurrentUrl

protected String getCurrentUrl(javax.servlet.http.HttpServletRequest request,
                               WebReportContext webReportContext)

getHeader

protected String getHeader(javax.servlet.http.HttpServletRequest request,
                           WebReportContext webReportContext,
                           String toolbarId)

getBody

protected String getBody(javax.servlet.http.HttpServletRequest request,
                         WebReportContext webReportContext,
                         String toolbarId)

getFooter

protected String getFooter()


Copyright © 2012. All Rights Reserved.