com.ferri.servlet
Class ServletPdf
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.ferri.servlet.ServletPdf
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.springframework.context.ApplicationContextAware
public class ServletPdf
- extends javax.servlet.http.HttpServlet
- implements org.springframework.context.ApplicationContextAware
Servlet que escolta les crides per generar documents pdf de Factures, Pressupostos o Contractes, possant-los al OutputStream de la response.
- Author:
- dferri
- See Also:
- Serialized Form
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 |
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
contracteService
private ContracteService contracteService
ServletPdf
public ServletPdf()
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
getContracteService
public ContracteService getContracteService()
- Returns:
- the contracteService
setContracteService
public void setContracteService(ContracteService contracteService)
- Parameters:
contracteService
- the contracteService to set