public final class EmailValidator extends Object
EmailValidator class provides the capability to validate e-mail addresses.
Modifier and Type | Field and Description |
---|---|
com.aspose.ms.lang.Event<DomainValidatingEventHandler> |
DomainValidating |
com.aspose.ms.lang.Event<MailServerValidatingEventHandler> |
MailServerValidating |
com.aspose.ms.lang.Event<SyntaxValidatingEventHandler> |
SyntaxValidating |
Constructor and Description |
---|
EmailValidator()
Create an instance of EmailValidator.
|
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.IAsyncResult |
beginValidate(String mailAddress,
int policy,
ValidationResult[] result,
com.aspose.ms.System.AsyncCallback asyncCallback,
Object stateObject)
Begins an asynchronous validating process for an email address.
|
void |
endValidate(ValidationResult[] validationResult,
com.aspose.ms.System.IAsyncResult asyncResult)
Ends an asynchronous validating process for an email address.
|
String[] |
getDnsServers()
Gets or sets the Dns server list to use in the email validation.
|
int |
getTimeout()
Gets or sets the length of time (in milliseconds) until the request times out.
|
void |
setDnsServers(String[] value)
Gets or sets the Dns server list to use in the email validation.
|
void |
setTimeout(int value)
Gets or sets the length of time (in milliseconds) until the request times out.
|
void |
validate(String mailAddress,
int policy,
ValidationResult[] result)
Validating the email address
|
void |
validate(String mailAddress,
ValidationResult[] result)
Validate email address, with the MailServer validation policy.
|
public final com.aspose.ms.lang.Event<SyntaxValidatingEventHandler> SyntaxValidating
public final com.aspose.ms.lang.Event<DomainValidatingEventHandler> DomainValidating
public final com.aspose.ms.lang.Event<MailServerValidatingEventHandler> MailServerValidating
public final String[] getDnsServers()
Gets or sets the Dns server list to use in the email validation.
public final void setDnsServers(String[] value)
Gets or sets the Dns server list to use in the email validation.
public final int getTimeout()
Gets or sets the length of time (in milliseconds) until the request times out.
public final void setTimeout(int value)
Gets or sets the length of time (in milliseconds) until the request times out.
public final void validate(String mailAddress, int policy, ValidationResult[] result)
Validating the email address
mailAddress
- The mail address to be validated.policy
- The policy of the validating process.result
- The result of the validating process.public final void validate(String mailAddress, ValidationResult[] result)
Validate email address, with the MailServer validation policy.
mailAddress
- The Email address to be validated.result
- The result of the validation.public final com.aspose.ms.System.IAsyncResult beginValidate(String mailAddress, int policy, ValidationResult[] result, com.aspose.ms.System.AsyncCallback asyncCallback, Object stateObject)
Begins an asynchronous validating process for an email address.
mailAddress
- The email address to be validated.policy
- The policy of the validating process.result
- The result of the validating process.asyncCallback
- The AsyncCallback delegatestateObject
- An object that contains state information for this request.public final void endValidate(ValidationResult[] validationResult, com.aspose.ms.System.IAsyncResult asyncResult)
Ends an asynchronous validating process for an email address.
validationResult
- The result of the validating process.asyncResult
- An IAsyncResult that stores state information and any user defined data for this asynchronous operation.