Class UnbluPatternMatchingExternalLinkHandler

java.lang.Object
com.unblu.sdk.core.links.UnbluPatternMatchingExternalLinkHandler
All Implemented Interfaces:
UnbluExternalLinkHandler

public class UnbluPatternMatchingExternalLinkHandler extends Object implements UnbluExternalLinkHandler
An implementation of the UnbluExternalLinkHandler interface.

This implementation checks links against a list of link patterns and returns UnbluExternalLinkHandlingPolicy.OPEN if the link matches a pattern.

  • Constructor Details

    • UnbluPatternMatchingExternalLinkHandler

      public UnbluPatternMatchingExternalLinkHandler()
      Default constructor.
      If you use this constructor, the list of patterns that may be opened in the system browser is as follows:
      • ^\Qhttps://\E.*
      • ^\Qmailto://\E.*
      • ^\Qtel:\E.*
    • UnbluPatternMatchingExternalLinkHandler

      public UnbluPatternMatchingExternalLinkHandler(List<Pattern> patternList)
      This constructor allows the user to pass in a custom list of Patterns. The list overrides the default list.
      Parameters:
      patternList - A list of patterns to compare links to
  • Method Details