apps.mtdesktop.tabletop.fileserver
Class FtpServerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by apps.mtdesktop.tabletop.fileserver.FtpServerServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class FtpServerServlet
extends javax.servlet.http.HttpServlet

The Class FtpServerServlet.

See Also:
Serialized Form

Nested Class Summary
static interface FtpServerServlet.FtpServletListener
          The listener interface for receiving ftpServlet events.
 
Field Summary
static int BUFFER_SIZE
          The Constant BUFFER_SIZE.
static int MAX_FILE_SIZE
          The Constant MAX_FILE_SIZE.
 
Constructor Summary
FtpServerServlet()
           
 
Method Summary
 void addFtpServletListener(FtpServerServlet.FtpServletListener listener)
          Adds the ftp servlet listener.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

public static final int BUFFER_SIZE
The Constant BUFFER_SIZE.

See Also:
Constant Field Values

MAX_FILE_SIZE

public static final int MAX_FILE_SIZE
The Constant MAX_FILE_SIZE.

See Also:
Constant Field Values
Constructor Detail

FtpServerServlet

public FtpServerServlet()
Method Detail

addFtpServletListener

public void addFtpServletListener(FtpServerServlet.FtpServletListener listener)
Adds the ftp servlet listener.

Parameters:
listener - the listener

doGet

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

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse resp)
            throws javax.servlet.ServletException,
                   java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

doPut

public void doPut(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse resp)
           throws javax.servlet.ServletException,
                  java.io.IOException
Overrides:
doPut in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException