ecar.util.jasper.servlet
Class RelatorioServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by ecar.util.jasper.servlet.RelatorioServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
RelatorioPPAFuncaoServlet, RelatorioPPALinhaAcaoServlet, RelatorioPPALinhaProgramaServlet, RelatorioPPAOrgaoServlet, RelatorioPPAOrgaoUnidadeServlet, RelatorioPPAProgramaServlet, RelatorioPPAServlet

public abstract class RelatorioServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
private  org.apache.log4j.Logger logger
           
 
Constructor Summary
RelatorioServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
abstract  void doRelatorioGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
abstract  void doRelatorioPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void redirectDefaultErrorIfNull(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object objeto)
          Redireciona para pagina de erro padrao se o parametro "objeto" for nulo
protected  void responseToHTML(javax.servlet.http.HttpServletResponse response, java.lang.String conteudo)
           
protected  void responseToPDF(javax.servlet.http.HttpServletResponse response, byte[] arquivo)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private org.apache.log4j.Logger logger
Constructor Detail

RelatorioServlet

public RelatorioServlet()
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doRelatorioGet

public abstract void doRelatorioGet(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)

doRelatorioPost

public abstract void doRelatorioPost(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response)

responseToPDF

protected void responseToPDF(javax.servlet.http.HttpServletResponse response,
                             byte[] arquivo)
                      throws java.io.IOException
Throws:
java.io.IOException

responseToHTML

protected void responseToHTML(javax.servlet.http.HttpServletResponse response,
                              java.lang.String conteudo)
                       throws java.io.IOException
Throws:
java.io.IOException

redirectDefaultErrorIfNull

protected void redirectDefaultErrorIfNull(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response,
                                          java.lang.Object objeto)
                                   throws javax.servlet.ServletException,
                                          java.io.IOException
Redireciona para pagina de erro padrao se o parametro "objeto" for nulo

Parameters:
request - requisicao
response - responsta
objeto - objeto a ser testado
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2007, PRODEPA - Processamento de Dados do Pará