@Singleton public class HttpUserService extends com.netflix.iep.service.AbstractService implements UserService
isValidEmail(String), the others just return an empty set.
Email checks will get cached to reduce load and improve performance for repeated checks.| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
emailAddresses()
Returns the set of all email addresses.
|
boolean |
isValidEmail(java.lang.String email)
Checks to see if an email address is valid for this service.
|
protected void |
startImpl() |
protected void |
stopImpl() |
close, isHealthy, name, start, state, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoValidEmailprotected void startImpl()
throws java.lang.Exception
startImpl in class com.netflix.iep.service.AbstractServicejava.lang.Exceptionprotected void stopImpl()
throws java.lang.Exception
stopImpl in class com.netflix.iep.service.AbstractServicejava.lang.Exceptionpublic java.util.Set<java.lang.String> emailAddresses()
UserServiceemailAddresses in interface UserServicepublic boolean isValidEmail(java.lang.String email)
UserServiceisValidEmail in interface UserServiceemail - The email address to check. This may not be an exact match for an address
in the set returned by UserService.emailAddresses(). In particular,
subaddresses
will not be in the set, but will be indicated as valid.