Class UserSubscriptionNotificationSendingHandler

    • Constructor Detail

      • UserSubscriptionNotificationSendingHandler

        protected UserSubscriptionNotificationSendingHandler()
        Hidden constructor.
    • Method Detail

      • parseForProperty

        public void parseForProperty​(javax.servlet.http.HttpServletRequest request)
        Verifies from a request if it is indicated that subscription notification sending must be skipped for the current request (from request parameters or request headers).
        Specified by:
        parseForProperty in interface ContributionOperationContextPropertyHandler
        Parameters:
        request - the current HTTP request.
      • skipNotificationSend

        public void skipNotificationSend()
        Forces the context by indicating to skip the sending of subscription notifications.

        This method permits to indicate a such context by bypassing an HTTP request decoding.

        The context is also registered into a thread cache, like it is done with the HTTP request decoding.

      • isSubscriptionNotificationEnabledForCurrentRequest

        public boolean isSubscriptionNotificationEnabledForCurrentRequest()
        Indicates if the user subscription notification sending is enabled for the current request.
        Returns:
        true if enabled, false otherwise.
      • getSubscriptionNotificationUserNoteFromCurrentRequest

        public String getSubscriptionNotificationUserNoteFromCurrentRequest()
        Gets a user note to paste into subscription notification message from the current request.
        Returns:
        true if enabled, false otherwise.