Class CellEmailFinder

java.lang.Object
org.bzdev.ecdb.CellEmailFinder

public abstract class CellEmailFinder extends Object
Base class for finding the email address to use for an MMS gateway for a cell phone number. Classes implementing this interface are obtained via a service-provider interface.
See Also:
  • Constructor Details

    • CellEmailFinder

      public CellEmailFinder()
  • Method Details

    • lookup

      public abstract String lookup(String prefix, String cellNumber)
      Look up the email address for a cell phone number's email address for the number's MMS gateway, using an instance of CellEmailFinder obtained from its service-provider interface.
      Parameters:
      prefix - the country prefix (e.g., 1 for the U.S.).
      cellNumber - the cell phone number, not including the prefix.
      Returns:
      the email address
    • lookup

      public static String lookup(ECDB ecdb, Connection conn, String prefix, String cellNumber, int carrierID)
      Look up the cell phone number's email address for the number's MMS gateway. The ECDB database will be used to find a cached value and if that is not available or has aged out, the method lookup(String, String) will be used to look up the number using an instance of CellEmailFinder obtained from its service-provider interface.
      Parameters:
      prefix - the country prefix (e.g., 1 for the U.S.).
      cellNumber - the cell phone number, not including the prefix.
      Returns:
      the email address