Class ShowImage

    • Constructor Detail

      • ShowImage

        public ShowImage()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
        Description copied from class: HttpBaseServlet
        Loads basic configuration settings that this class and all that extend it require to function properly. Also instantiates XmlEngine object. This method is called upon load of the class, which is configured to be loaded upon start of the application server. See also web.xml (load-on-startup).
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class HttpSecureAppServlet
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws IOException,
                          javax.servlet.ServletException
        Receiving an id parameter it looks in database for the image with that id and displays it
        Overrides:
        doGet in class HttpBaseServlet
        Parameters:
        request - HttpServletRequest object where details of the HTTP request are.
        response - HttpServletResponse object where the response will be written and returned to the user.
        Throws:
        IOException
        javax.servlet.ServletException