it.eng.spagobi.services
Class ExportServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
it.eng.spagobi.services.ExportServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ExportServlet
- extends javax.servlet.http.HttpServlet
A servlet used to manage export operation
- See Also:
- Serialized Form
Method Summary |
void |
init(javax.servlet.ServletConfig config)
Init method definition |
private void |
manageDownload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle a download request of an eported file. |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Service method definition which, based on a particular parameter,
redirects the execution to a specific handler |
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 |
ExportServlet
public ExportServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Init method definition
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Service method definition which, based on a particular parameter,
redirects the execution to a specific handler
- Overrides:
service
in class javax.servlet.http.HttpServlet
- Parameters:
request
- The http servlet requestresponse
- The http servlet response
- Throws:
java.io.IOException
- If any exception occurred
manageDownload
private void manageDownload(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Handle a download request of an eported file. Reads the file, sends it as an http response attachment
and in the end deletes the file.
- Parameters:
request
- the http requestresponse
- the http response