com.ferri.servlet
Class ServletExcel

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.ferri.servlet.ServletExcel
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.springframework.context.ApplicationContextAware

public class ServletExcel
extends javax.servlet.http.HttpServlet
implements org.springframework.context.ApplicationContextAware

Servlet que escolta les crides per generar documents excel de Factures, possant-los al OutputStream de la response.

Author:
dferri
See Also:
Serialized Form

Field Summary
private  org.springframework.context.ApplicationContext applicationContext
           
private  FacturaService facturaService
           
private  String[] locations
           
private static long serialVersionUID
           
 
Constructor Summary
ServletExcel()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 FacturaService getFacturaService()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setFacturaService(FacturaService facturaService)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

locations

private String[] locations

applicationContext

private org.springframework.context.ApplicationContext applicationContext

facturaService

private FacturaService facturaService
Constructor Detail

ServletExcel

public ServletExcel()
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

getFacturaService

public FacturaService getFacturaService()
Returns:
the facturaService

setFacturaService

public void setFacturaService(FacturaService facturaService)
Parameters:
facturaService - the facturaService to set