public class SAPViewerUrl extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DDC_TAG
URL tag for DDC name.
|
static String |
DOCID_TAG
URL tag for document ID.
|
static String |
DOWNLOAD_ALLOWED
Property in control bean used to store if downloading is allowed or not.
|
static String |
LINKTAG
URL tag for WebLink mode.
|
static String |
MAINTAG
URL tag for WebView mode.
|
static String |
SAPVIEWER_PREFIX
Prefix for client instance ID of applet.
|
static String |
USER_TAG
URL tag for user name.
|
| Constructor and Description |
|---|
SAPViewerUrl() |
| Modifier and Type | Method and Description |
|---|---|
OpenDocumentBean |
createControlBeanAndLogin(String url,
javax.servlet.http.HttpServletRequest servletRequest,
String viewerId)
Parses the SAPViewer-URL, performs a login if required and created the viewer-control-bean.
|
static String |
getRandomViewerId() |
public static final String DOWNLOAD_ALLOWED
public static final String MAINTAG
public static final String LINKTAG
public static final String DOCID_TAG
public static final String USER_TAG
public static final String DDC_TAG
public static final String SAPVIEWER_PREFIX
public OpenDocumentBean createControlBeanAndLogin(String url, javax.servlet.http.HttpServletRequest servletRequest, String viewerId) throws AuthenticationException, SystemException, DocumentLockException, SapViewerUrlException
url - the URL to parseservletRequest - the current request sent from the clientviewerId - the ID of the current viewerAuthenticationException - Exception when logging inSystemException - Exception when parsing the url or when reading the documentDocumentLockException - document is lockedSapViewerUrlException - when the url was invalidpublic static String getRandomViewerId()
Copyright © 2016 SAPERION AG. All rights reserved.