Class AnnotationsServlet

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

    public class AnnotationsServlet
    extends AbstractAnnotationsServlet
    Servlet to stream annotations to viewer from doc service.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Servlet get-method.
      void init​(javax.servlet.ServletConfig config)
      • 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, log, log
      • Methods inherited from class java.lang.Object

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

      • AnnotationsServlet

        public AnnotationsServlet()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
        See Also:
        GenericServlet.init(javax.servlet.ServletConfig)
      • doGet

        public final void doGet​(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
                         throws javax.servlet.ServletException,
                                java.io.IOException
        Servlet get-method. Retrieves annotations from the backend or from the session, if the session contains temporarily stored annotations for the specified document. The format of the returned annotations can be influences by using the converterClass init-parameter. The current document is found by using the viewer-id to get all required information from the session.
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Parameters:
        request - Request
        response - Response
        Throws:
        javax.servlet.ServletException - servlet exception
        java.io.IOException - IOException
        See Also:
        HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)