java.lang.Object
org.bzdev.ecdb.CellEmailFinder
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
Look up the email address for a cell phone number's email address for the number's MMS gateway, using an instance ofCellEmailFinder
obtained from its service-provider interface.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.
-
Constructor Details
-
CellEmailFinder
public CellEmailFinder()
-
-
Method Details
-
lookup
Look up the email address for a cell phone number's email address for the number's MMS gateway, using an instance ofCellEmailFinder
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 methodlookup(String, String)
will be used to look up the number using an instance ofCellEmailFinder
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
-