Package com.saperion.ngc.sapviewer
Class SAPViewerMailUrl
- java.lang.Object
-
- com.saperion.ngc.sapviewer.SAPViewerMailUrl
-
public final class SAPViewerMailUrl extends java.lang.ObjectClass used to generate URLs needed to send documents by mail.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetAppletMailingURL(javax.servlet.http.HttpServletRequest request, DocumentId docId, java.util.List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> elements, java.lang.String text, java.lang.String subject)Creates a mailing URL.static java.lang.StringgetAppletUrlMailingURL(javax.servlet.http.HttpServletRequest request, DocumentId docId, java.lang.String mailText, java.lang.String subject)Creates a url mailing URL.static java.lang.StringgetMailToLink(javax.servlet.http.HttpServletRequest request, DocumentId docId)Creates SapWebViewer Mailto link.
-
-
-
Method Detail
-
getAppletMailingURL
public static java.lang.String getAppletMailingURL(javax.servlet.http.HttpServletRequest request, DocumentId docId, java.util.List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> elements, java.lang.String text, java.lang.String subject) throws java.io.UnsupportedEncodingExceptionCreates a mailing URL.- Parameters:
request- the current requestdocId- the ID of the document to mailelements- the structure of the documenttext- the Mail textsubject- the subject of the mail- Returns:
- Mailing URL
- Throws:
java.io.UnsupportedEncodingException- encoding error when creating URL
-
getAppletUrlMailingURL
public static java.lang.String getAppletUrlMailingURL(javax.servlet.http.HttpServletRequest request, DocumentId docId, java.lang.String mailText, java.lang.String subject) throws java.io.UnsupportedEncodingExceptionCreates a url mailing URL.- Parameters:
request- the current requestdocId- the ID of the document to mailmailText- Mail text (default: Mail URL to send: )subject- the subject of the mail- Returns:
- Mailing URL
- Throws:
java.io.UnsupportedEncodingException
-
getMailToLink
public static java.lang.String getMailToLink(javax.servlet.http.HttpServletRequest request, DocumentId docId) throws java.io.UnsupportedEncodingExceptionCreates SapWebViewer Mailto link.- Parameters:
request- the current requestdocId- the ID of the document to mail- Returns:
- SapWebViewer WebView Url for mailto link
- Throws:
java.io.UnsupportedEncodingException
-
-