Class SAPViewerMailUrl


  • public final class SAPViewerMailUrl
    extends java.lang.Object
    Class 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.String getAppletMailingURL​(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.String getAppletUrlMailingURL​(javax.servlet.http.HttpServletRequest request, DocumentId docId, java.lang.String mailText, java.lang.String subject)
      Creates a url mailing URL.
      static java.lang.String getMailToLink​(javax.servlet.http.HttpServletRequest request, DocumentId docId)
      Creates SapWebViewer Mailto link.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.UnsupportedEncodingException
        Creates a mailing URL.
        Parameters:
        request - the current request
        docId - the ID of the document to mail
        elements - the structure of the document
        text - the Mail text
        subject - 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.UnsupportedEncodingException
        Creates a url mailing URL.
        Parameters:
        request - the current request
        docId - the ID of the document to mail
        mailText - 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.UnsupportedEncodingException
        Creates SapWebViewer Mailto link.
        Parameters:
        request - the current request
        docId - the ID of the document to mail
        Returns:
        SapWebViewer WebView Url for mailto link
        Throws:
        java.io.UnsupportedEncodingException