Class AnnotationsServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.saperion.ngc.servlet.AbstractAnnotationsServlet
com.saperion.ngc.servlet.AnnotationsServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

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

    Fields inherited from class com.saperion.ngc.servlet.AbstractAnnotationsServlet

    ANNOTATIONS_MAP, CANCEL_SAVE, FINAL_SAVE, FORCED_SAVE

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Servlet get-method.
    void
    init(jakarta.servlet.ServletConfig config)

    Methods inherited from class com.saperion.ngc.servlet.AbstractAnnotationsServlet

    getDocService, getSessionCookie

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service

    Methods inherited from class jakarta.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 Details

    • AnnotationsServlet

      public AnnotationsServlet()
  • Method Details

    • init

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

      public final void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, 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 jakarta.servlet.http.HttpServlet
      Parameters:
      request - Request
      response - Response
      Throws:
      jakarta.servlet.ServletException - servlet exception
      IOException - IOException
      See Also:
      • HttpServlet.doGet(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)