Package com.saperion.ngc.servlet
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
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 -
Method Summary
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
-
Constructor Details
-
AnnotationsServlet
public AnnotationsServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException - Specified by:
init
in interfacejakarta.servlet.Servlet
- Overrides:
init
in classjakarta.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 classjakarta.servlet.http.HttpServlet
- Parameters:
request
- Requestresponse
- Response- Throws:
jakarta.servlet.ServletException
- servlet exceptionIOException
- IOException- See Also:
-
HttpServlet.doGet(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)
-