Acme.Serve
Class FileServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by Acme.Serve.FileServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class FileServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
protected  String charSet
           
 
Constructor Summary
FileServlet()
           
FileServlet(String throttles, String charset)
           
 
Method Summary
 void copyStream(InputStream in, OutputStream out, long len)
           
 String getServletInfo()
           
 void log(String msg)
           
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
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, getServletName, init, init, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

charSet

protected String charSet
Constructor Detail

FileServlet

public FileServlet()

FileServlet

public FileServlet(String throttles,
                   String charset)
            throws IOException
Throws:
IOException
Method Detail

getServletInfo

public String getServletInfo()
Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
                    IOException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

copyStream

public void copyStream(InputStream in,
                       OutputStream out,
                       long len)
                throws IOException
Throws:
IOException

log

public void log(String msg)
Overrides:
log in class javax.servlet.GenericServlet


Copyright © 2012. All Rights Reserved.