Package com.saperion.ngc.servlet
Class ViewerControlServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.saperion.ngc.servlet.ViewerControlServlet
- All Implemented Interfaces:
- jakarta.servlet.Servlet,- jakarta.servlet.ServletConfig,- Serializable
public class ViewerControlServlet
extends jakarta.servlet.http.HttpServlet
Servlet used to control the viewer-popups. It keeps track about the opened
 documents.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringRequest-parameter to pass actions.static final intAction used to notify the control servlet that the viewer window was closed.static final StringRequest-parameter to pass data required to perform the action.static final intAction used to notify the control servlet that the user changed the displayed element.static final intAction used to request the control servlet to close the external viewer window.static final intAction used to notify the control servlet that a new element was selected in Hyland Viewer.static final intAction used to request the control servlet to fetch the next document in the structure.static final intAction used to request the control servlet to fetch the next element in the structure.static final intAction used to get the render-mode for a pdfjs-viewer.static final StringRequest-parameter to signalize that an element should be marked for rendering.static final intAction used to notify the control servlet that the user rotated the document.static final intAction used to trogger a multi-element download from SAPViewer.static final intAction used to notify the control servlet that a new element was selected in SAP Viewer.static final intAction used to keep sessions alive.static final intAction used to keep sessions alive.static final intAction used to request resources needed to create a mailto link (webservices downloadlink) on the client.static final intAction used to request resources needed to create a mailto link (SapViewer link) on the client.static final intAction used to notify the control servlet that the SAPViewer received a new URL.static final intAction used to get resources needed for SAPViewer.jsp.static final StringRequest-parameter to decide whether to send plain ID or not.Fields inherited from class jakarta.servlet.http.HttpServletLEGACY_DO_HEAD
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Servlet's post-method.protected booleanisSizeLimitEnabled(long maxViewSize) Tells if the size limit for viewing documents is enabled.Methods inherited from class jakarta.servlet.http.HttpServletdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, init, service, serviceMethods inherited from class jakarta.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
- 
Field Details- 
ELEMENT_CHANGEpublic static final int ELEMENT_CHANGEAction used to notify the control servlet that the user changed the displayed element.- See Also:
 
- 
CLOSEpublic static final int CLOSEAction used to notify the control servlet that the viewer window was closed.- See Also:
 
- 
ROTATEpublic static final int ROTATEAction used to notify the control servlet that the user rotated the document.- See Also:
 
- 
SAPVIEWER_NEW_URLpublic static final int SAPVIEWER_NEW_URLAction used to notify the control servlet that the SAPViewer received a new URL.- See Also:
 
- 
SAPVIEWER_RESOURCESpublic static final int SAPVIEWER_RESOURCESAction used to get resources needed for SAPViewer.jsp.- See Also:
 
- 
SAPVIEWER_DOWNLOADpublic static final int SAPVIEWER_DOWNLOADAction used to trogger a multi-element download from SAPViewer.- See Also:
 
- 
SAPVIEWER_KEEPALIVEpublic static final int SAPVIEWER_KEEPALIVEAction used to keep sessions alive.- See Also:
 
- 
SAPVIEWER_GET_DOCINFOpublic static final int SAPVIEWER_GET_DOCINFOAction used to keep sessions alive.- See Also:
 
- 
PDFJS_VIEWER_DISPLAYMODEpublic static final int PDFJS_VIEWER_DISPLAYMODEAction used to get the render-mode for a pdfjs-viewer.- See Also:
 
- 
SAPVIEWER_ELEMENT_CHANGEpublic static final int SAPVIEWER_ELEMENT_CHANGEAction used to notify the control servlet that a new element was selected in SAP Viewer.- See Also:
 
- 
SAPVIEWER_MAIL_SHARELINKpublic static final int SAPVIEWER_MAIL_SHARELINKAction used to request resources needed to create a mailto link (SapViewer link) on the client.- See Also:
 
- 
SAPVIEWER_MAIL_DOWNLOADLINKpublic static final int SAPVIEWER_MAIL_DOWNLOADLINKAction used to request resources needed to create a mailto link (webservices downloadlink) on the client.- See Also:
 
- 
HYLAND_VIEWER_ELEMENT_CHANGEpublic static final int HYLAND_VIEWER_ELEMENT_CHANGEAction used to notify the control servlet that a new element was selected in Hyland Viewer.- See Also:
 
- 
HYLAND_VIEWER_NAVIGATE_ELEMENTSpublic static final int HYLAND_VIEWER_NAVIGATE_ELEMENTSAction used to request the control servlet to fetch the next element in the structure.- See Also:
 
- 
HYLAND_VIEWER_NAVIGATE_DOCUMENTSpublic static final int HYLAND_VIEWER_NAVIGATE_DOCUMENTSAction used to request the control servlet to fetch the next document in the structure.- See Also:
 
- 
HYLAND_VIEWER_CLOSEpublic static final int HYLAND_VIEWER_CLOSEAction used to request the control servlet to close the external viewer window.- See Also:
 
- 
ACTIONRequest-parameter to pass actions.- See Also:
 
- 
DATARequest-parameter to pass data required to perform the action.- See Also:
 
- 
RENDER_TARGETRequest-parameter to signalize that an element should be marked for rendering.- See Also:
 
- 
SEND_PLAIN_IDRequest-parameter to decide whether to send plain ID or not.- See Also:
 
 
- 
- 
Constructor Details- 
ViewerControlServletpublic ViewerControlServlet()
 
- 
- 
Method Details- 
doPostprotected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Servlet's post-method. Can be used to store information about a document opened in one specific viewer in the session.
 URL-Parameters:
 - action : defines the action to perform
- data : data needed to perform the action or null
- popupId : ID of the viewer-popup
 - Overrides:
- doPostin class- jakarta.servlet.http.HttpServlet
- Parameters:
- req- serlvet request
- resp- servlet response
- Throws:
- jakarta.servlet.ServletException- servlet exception
- IOException- IO exception
- See Also:
- 
- HttpServlet.doPost(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.http.HttpServletResponse)
 
 
- 
isSizeLimitEnabledprotected boolean isSizeLimitEnabled(long maxViewSize) Tells if the size limit for viewing documents is enabled. Therefore the max view size must be set to an integer value > 0.- Returns:
- True if the max view size > 0, false else.
 
 
-