Package com.saperion.ngc.servlet
Class ViewerControlServlet
- java.lang.Object
- 
- javax.servlet.GenericServlet
- 
- javax.servlet.http.HttpServlet
- 
- com.saperion.ngc.servlet.ViewerControlServlet
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- javax.servlet.Servlet,- javax.servlet.ServletConfig
 
 public class ViewerControlServlet extends javax.servlet.http.HttpServletServlet used to control the viewer-popups. It keeps track about the opened documents.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringACTIONRequest-parameter to pass actions.static intCLOSEAction used to notify the control servlet that the viewer window was closed.static java.lang.StringDATARequest-parameter to pass data required to perform the action.static intELEMENT_CHANGEAction used to notify the control servlet that the user changed the displayed element.static intHYLAND_VIEWER_ELEMENT_CHANGEAction used to notify the control servlet that a new element was selected in Hyland Viewer.static intHYLAND_VIEWER_NAVIGATE_DOCUMENTSAction used to request the control servlet to fetch the next document in the structure.static intHYLAND_VIEWER_NAVIGATE_ELEMENTSAction used to request the control servlet to fetch the next element in the structure.static intPDFJS_VIEWER_DISPLAYMODEAction used to get the render-mode for a pdfjs-viewer.static java.lang.StringRENDER_TARGETRequest-parameter to signalize that an element should be marked for rendering.static intROTATEAction used to notify the control servlet that the user rotated the document.static intSAPVIEWER_DOWNLOADAction used to trogger a multi-element download from SAPViewer.static intSAPVIEWER_ELEMENT_CHANGEAction used to notify the control servlet that a new element was selected in SAP Viewer.static intSAPVIEWER_GET_DOCINFOAction used to keep sessions alive.static intSAPVIEWER_KEEPALIVEAction used to keep sessions alive.static intSAPVIEWER_MAIL_DOWNLOADLINKAction used to request resources needed to create a mailto link (webservices downloadlink) on the client.static intSAPVIEWER_MAIL_SHARELINKAction used to request resources needed to create a mailto link (SapViewer link) on the client.static intSAPVIEWER_NEW_URLAction used to notify the control servlet that the SAPViewer received a new URL.static intSAPVIEWER_RESOURCESAction used to get resources needed for SAPViewer.jsp.static java.lang.StringSEND_PLAIN_IDRequest-parameter to decide whether to send plain ID or not.
 - 
Constructor SummaryConstructors Constructor Description ViewerControlServlet()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoPost(javax.servlet.http.HttpServletRequest req, javax.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 javax.servlet.http.HttpServletdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
- 
 
- 
- 
- 
Field Detail- 
ELEMENT_CHANGEpublic static final int ELEMENT_CHANGE Action used to notify the control servlet that the user changed the displayed element.- See Also:
- Constant Field Values
 
 - 
CLOSEpublic static final int CLOSE Action used to notify the control servlet that the viewer window was closed.- See Also:
- Constant Field Values
 
 - 
ROTATEpublic static final int ROTATE Action used to notify the control servlet that the user rotated the document.- See Also:
- Constant Field Values
 
 - 
SAPVIEWER_NEW_URLpublic static final int SAPVIEWER_NEW_URL Action used to notify the control servlet that the SAPViewer received a new URL.- See Also:
- Constant Field Values
 
 - 
SAPVIEWER_RESOURCESpublic static final int SAPVIEWER_RESOURCES Action used to get resources needed for SAPViewer.jsp.- See Also:
- Constant Field Values
 
 - 
SAPVIEWER_DOWNLOADpublic static final int SAPVIEWER_DOWNLOAD Action used to trogger a multi-element download from SAPViewer.- See Also:
- Constant Field Values
 
 - 
SAPVIEWER_KEEPALIVEpublic static final int SAPVIEWER_KEEPALIVE Action used to keep sessions alive.- See Also:
- Constant Field Values
 
 - 
SAPVIEWER_GET_DOCINFOpublic static final int SAPVIEWER_GET_DOCINFO Action used to keep sessions alive.- See Also:
- Constant Field Values
 
 - 
PDFJS_VIEWER_DISPLAYMODEpublic static final int PDFJS_VIEWER_DISPLAYMODE Action used to get the render-mode for a pdfjs-viewer.- See Also:
- Constant Field Values
 
 - 
SAPVIEWER_ELEMENT_CHANGEpublic static final int SAPVIEWER_ELEMENT_CHANGE Action used to notify the control servlet that a new element was selected in SAP Viewer.- See Also:
- Constant Field Values
 
 - 
SAPVIEWER_MAIL_SHARELINKpublic static final int SAPVIEWER_MAIL_SHARELINK Action used to request resources needed to create a mailto link (SapViewer link) on the client.- See Also:
- Constant Field Values
 
 - 
SAPVIEWER_MAIL_DOWNLOADLINKpublic static final int SAPVIEWER_MAIL_DOWNLOADLINK Action used to request resources needed to create a mailto link (webservices downloadlink) on the client.- See Also:
- Constant Field Values
 
 - 
HYLAND_VIEWER_ELEMENT_CHANGEpublic static final int HYLAND_VIEWER_ELEMENT_CHANGE Action used to notify the control servlet that a new element was selected in Hyland Viewer.- See Also:
- Constant Field Values
 
 - 
HYLAND_VIEWER_NAVIGATE_ELEMENTSpublic static final int HYLAND_VIEWER_NAVIGATE_ELEMENTS Action used to request the control servlet to fetch the next element in the structure.- See Also:
- Constant Field Values
 
 - 
HYLAND_VIEWER_NAVIGATE_DOCUMENTSpublic static final int HYLAND_VIEWER_NAVIGATE_DOCUMENTS Action used to request the control servlet to fetch the next document in the structure.- See Also:
- Constant Field Values
 
 - 
ACTIONpublic static final java.lang.String ACTION Request-parameter to pass actions.- See Also:
- Constant Field Values
 
 - 
DATApublic static final java.lang.String DATA Request-parameter to pass data required to perform the action.- See Also:
- Constant Field Values
 
 - 
RENDER_TARGETpublic static final java.lang.String RENDER_TARGET Request-parameter to signalize that an element should be marked for rendering.- See Also:
- Constant Field Values
 
 - 
SEND_PLAIN_IDpublic static final java.lang.String SEND_PLAIN_ID Request-parameter to decide whether to send plain ID or not.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
doPostprotected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, java.io.IOExceptionServlet'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- javax.servlet.http.HttpServlet
- Parameters:
- req- serlvet request
- resp- servlet response
- Throws:
- javax.servlet.ServletException- servlet exception
- java.io.IOException- IO exception
- See Also:
- HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.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.
 
 
- 
 
-