Package com.saperion.ngc.json
Class SapViewerResources
java.lang.Object
com.saperion.ngc.json.SapViewerResources
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 Summary
ConstructorsConstructorDescriptionSapViewerResources
(jakarta.servlet.http.HttpServletRequest request, String viewerId) -
Method Summary
Modifier and TypeMethodDescriptionlong
-
Constructor Details
-
SapViewerResources
- Parameters:
request
- the current requestviewerId
- the ID of the viewer these resources are loaded for
-
-
Method Details
-
getMaxViewSize
public long getMaxViewSize()- Returns:
- maximum size of a viewable document
-
getControlUrl
- Returns:
- URL of the control-servlet
-
getSapNotesUrl
- Returns:
- URL of the sapnotes-servlet
-
getDownloadUrl
- Returns:
- URL of the streaming-servlet for download
-
getZipDownloadUrl
- Returns:
- URL of the zip-servlet
-
getNewUrlParams
- Returns:
- parameters needed when posting a new URL
-
getNewElementParams
- Returns:
- parameters needed when switching to another element
-
getCloseWindowParams
- Returns:
- parameters needed when notfying about close
-
getRotationParams
- Returns:
- parameters needed when posting a new rotation event
-
getMultiDownloadParams
- Returns:
- parameters needed when initializing a multi-element-download
-
getKeepAliveParams
- Returns:
- parameters needed by keep-alive post
-
getDocumentInfoParams
- Returns:
- parameters needed when requesting document infos
-
getMailDownloadLinkParams
- Returns:
- parameters needed when requesting mail link infos
-
getHelpUrl
- Returns:
- help URL
-