Package com.saperion.ngc.servlet
Class AnnotationsServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.saperion.ngc.servlet.AbstractAnnotationsServlet
-
- com.saperion.ngc.servlet.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
-
-
Field Summary
-
Fields inherited from class com.saperion.ngc.servlet.AbstractAnnotationsServlet
ANNOTATIONS_MAP, CANCEL_SAVE, FINAL_SAVE, FORCED_SAVE
-
-
Constructor Summary
Constructors Constructor Description AnnotationsServlet()
-
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 com.saperion.ngc.servlet.AbstractAnnotationsServlet
getDocService, getSessionCookie
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.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 classjavax.servlet.http.HttpServlet
- Parameters:
request
- Requestresponse
- Response- Throws:
javax.servlet.ServletException
- servlet exceptionjava.io.IOException
- IOException- See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
-
-