Package com.saperion.ngc.sapviewer
Class SAPViewerUrl
java.lang.Object
com.saperion.ngc.sapviewer.SAPViewerUrl
This is the parser for SAPViewer URLs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
URL tag for DDC name.static final String
URL tag for document ID.static final String
Property in control bean used to store if downloading is allowed or not.static final String
URL tag for WebLink mode.static final String
URL tag for WebView mode.static final String
Prefix for client instance ID of applet.static final String
URL tag for user name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateControlBeanAndLogin
(String url, jakarta.servlet.http.HttpServletRequest servletRequest, String viewerId) Parses the SAPViewer-URL, performs a login if required and created the viewer-control-bean.static String
-
Field Details
-
DOWNLOAD_ALLOWED
Property in control bean used to store if downloading is allowed or not.- See Also:
-
MAINTAG
URL tag for WebView mode.- See Also:
-
LINKTAG
URL tag for WebLink mode.- See Also:
-
DOCID_TAG
URL tag for document ID.- See Also:
-
USER_TAG
URL tag for user name.- See Also:
-
DDC_TAG
URL tag for DDC name.- See Also:
-
SAPVIEWER_PREFIX
Prefix for client instance ID of applet.- See Also:
-
-
Constructor Details
-
SAPViewerUrl
public SAPViewerUrl()
-
-
Method Details
-
createControlBeanAndLogin
public OpenDocumentBean createControlBeanAndLogin(String url, jakarta.servlet.http.HttpServletRequest servletRequest, String viewerId) throws AuthenticationException, SystemException, DocumentLockException, SapViewerUrlException Parses the SAPViewer-URL, performs a login if required and created the viewer-control-bean.- Parameters:
url
- the URL to parseservletRequest
- the current request sent from the clientviewerId
- the ID of the current viewer- Returns:
- the bean containing the information about the document to open
- Throws:
AuthenticationException
- Exception when logging inSystemException
- Exception when parsing the url or when reading the documentDocumentLockException
- document is lockedSapViewerUrlException
- when the url was invalid
-
getRandomViewerId
- Returns:
- a string to be used as client instance id for the applet
-