pt.moredata.dataentry.taglibs
Class DownloadFileServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bypt.moredata.dataentry.taglibs.DownloadFileServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DownloadFileServlet
extends javax.servlet.http.HttpServlet

Company MoreData

Version:
$Revision: 1.4 $
Author:
pcarmo
See Also:
Serialized Form

Field Summary
protected  java.lang.String _contentType
          Tipo de conteudo.
protected  javax.servlet.http.HttpServletRequest _request
          HttpservletRequest object
static java.lang.String FILE_KEY
           
static java.lang.String FILE_NAME_KEY
           
 
Constructor Summary
DownloadFileServlet()
           
 
Method Summary
 void destroy()
          Destroys the servlet.
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles the HTTP GET method.
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles the HTTP POST method.
 java.lang.String getServletInfo()
          Returns a short description of the servlet.
protected  void initAttributes()
          Inicializacao dos parametros da servltet.
protected  void processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Processes requests for both HTTP GET and POST methods.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, 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

FILE_KEY

public static final java.lang.String FILE_KEY
See Also:
Constant Field Values

FILE_NAME_KEY

public static final java.lang.String FILE_NAME_KEY
See Also:
Constant Field Values

_request

protected javax.servlet.http.HttpServletRequest _request
HttpservletRequest object


_contentType

protected java.lang.String _contentType
Tipo de conteudo.

Constructor Detail

DownloadFileServlet

public DownloadFileServlet()
Method Detail

initAttributes

protected void initAttributes()
Inicializacao dos parametros da servltet.


processRequest

protected void processRequest(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws javax.servlet.ServletException,
                              java.io.IOException
Processes requests for both HTTP GET and POST methods.

Parameters:
request - servlet request
response - servlet response
Throws:
javax.servlet.ServletException - Description of the Exception
java.io.IOException - Description of the Exception

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Handles the HTTP GET method.

Parameters:
request - servlet request
response - servlet response
Throws:
javax.servlet.ServletException - Description of the Exception
java.io.IOException - Description of the Exception

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Handles the HTTP POST method.

Parameters:
request - servlet request
response - servlet response
Throws:
javax.servlet.ServletException - Description of the Exception
java.io.IOException - Description of the Exception

destroy

public void destroy()
Destroys the servlet.


getServletInfo

public java.lang.String getServletInfo()
Returns a short description of the servlet.

Returns:
The servletInfo value