|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jSyncManager.SJS.Adapters.SMTPServer.util.SMTPUtils
public class SMTPUtils
Utility class to assist with some commonly performed SMTP functionality. Should probably be static.
Field Summary | |
---|---|
static java.lang.String |
addressRegex
Simple email expression. |
static java.lang.String |
groupedAddressRegex
The same as addressRegex except that it puts the user in group 1 and the domain in group 2 E.G. |
Constructor Summary | |
---|---|
SMTPUtils()
|
Method Summary | |
---|---|
static boolean |
isValidAddress(java.lang.String address)
Checks whether an e-mail address is correct (regex might need to change according to our standard) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String addressRegex
public static final java.lang.String groupedAddressRegex
Constructor Detail |
---|
public SMTPUtils()
Method Detail |
---|
public static boolean isValidAddress(java.lang.String address)
address
- the address string to be validated
|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |