Class MailContentServlet

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

    public class MailContentServlet
    extends javax.servlet.http.HttpServlet
    Author:
    rbo
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DOCIDS_ATTR
      Document ID's.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      protected void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      void init()
      protected void writeContent​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String hDoc, int element, java.lang.String filename, boolean currentRevision)
      Writes the document's content to the request's output stream.
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DOCIDS_ATTR

        public static final java.lang.String DOCIDS_ATTR
        Document ID's.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MailContentServlet

        public MailContentServlet()
    • Method Detail

      • writeContent

        protected void writeContent​(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    java.lang.String hDoc,
                                    int element,
                                    java.lang.String filename,
                                    boolean currentRevision)
                             throws java.io.IOException
        Writes the document's content to the request's output stream.
        Parameters:
        request - the request
        response - the response
        hDoc - the hdoc
        element - the element
        filename - the filename
        currentRevision - current revision
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • init

        public void init()
                  throws javax.servlet.ServletException
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
        See Also:
        GenericServlet.init()
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Servlet
        Overrides:
        destroy in class javax.servlet.GenericServlet
        See Also:
        GenericServlet.destroy()
      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws javax.servlet.ServletException,
                             java.io.IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
        See Also:
        HttpServlet.doGet(javax.servlet.http.HttpServletRequest , javax.servlet.http.HttpServletResponse)