Class TextFileServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    class TextFileServlet
    extends javax.servlet.http.HttpServlet
    Sends a small text meta file from the repository.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String fileName  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      TextFileServlet​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doGet​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
      private byte[] read​(javax.servlet.http.HttpServletRequest req)  
      • 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
    • Field Detail

      • fileName

        private final java.lang.String fileName
    • Constructor Detail

      • TextFileServlet

        TextFileServlet​(java.lang.String name)
    • Method Detail

      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest req,
                          javax.servlet.http.HttpServletResponse rsp)
                   throws java.io.IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        java.io.IOException
      • read

        private byte[] read​(javax.servlet.http.HttpServletRequest req)
                     throws java.io.IOException
        Throws:
        java.io.IOException