Class SapViewerResources

java.lang.Object
com.saperion.ngc.json.SapViewerResources

public class SapViewerResources extends Object
The resources used on the client-side by SAPViewer. This class will be converted to a JSON string and then sent to the client.
  • Constructor Details

    • SapViewerResources

      public SapViewerResources(jakarta.servlet.http.HttpServletRequest request, String viewerId)
      Parameters:
      request - the current request
      viewerId - the ID of the viewer these resources are loaded for
  • Method Details

    • getMaxViewSize

      public long getMaxViewSize()
      Returns:
      maximum size of a viewable document
    • getControlUrl

      public String getControlUrl()
      Returns:
      URL of the control-servlet
    • getSapNotesUrl

      public String getSapNotesUrl()
      Returns:
      URL of the sapnotes-servlet
    • getDownloadUrl

      public String getDownloadUrl()
      Returns:
      URL of the streaming-servlet for download
    • getZipDownloadUrl

      public String getZipDownloadUrl()
      Returns:
      URL of the zip-servlet
    • getNewUrlParams

      public String getNewUrlParams()
      Returns:
      parameters needed when posting a new URL
    • getNewElementParams

      public String getNewElementParams()
      Returns:
      parameters needed when switching to another element
    • getCloseWindowParams

      public String getCloseWindowParams()
      Returns:
      parameters needed when notfying about close
    • getRotationParams

      public String getRotationParams()
      Returns:
      parameters needed when posting a new rotation event
    • getMultiDownloadParams

      public String getMultiDownloadParams()
      Returns:
      parameters needed when initializing a multi-element-download
    • getKeepAliveParams

      public String getKeepAliveParams()
      Returns:
      parameters needed by keep-alive post
    • getDocumentInfoParams

      public String getDocumentInfoParams()
      Returns:
      parameters needed when requesting document infos
    • getMailShareLinkParams

      public String getMailShareLinkParams()
      Returns:
      parameters needed when requesting mail link infos
    • getMailDownloadLinkParams

      public String getMailDownloadLinkParams()
      Returns:
      parameters needed when requesting mail link infos
    • getHelpUrl

      public String getHelpUrl()
      Returns:
      help URL