EmailValidator

Inheritance: java.lang.Object

public final class EmailValidator

EmailValidator class provides the capability to validate e-mail addresses.

Constructors

ConstructorDescription
EmailValidator()Create an instance of EmailValidator.

Fields

FieldDescription
DomainValidating
MailServerValidating
SyntaxValidating

Methods

MethodDescription
beginValidate(String mailAddress, int policy, ValidationResult[] result, System.AsyncCallback asyncCallback, Object stateObject)Begins an asynchronous validating process for an email address.
endValidate(ValidationResult[] validationResult, System.IAsyncResult asyncResult)Ends an asynchronous validating process for an email address.
equals(Object arg0)
getClass()
getDnsServers()Gets or sets the Dns server list to use in the email validation.
getTimeout()Gets or sets the length of time (in milliseconds) until the request times out.
hashCode()
notify()
notifyAll()
setDnsServers(String[] value)Gets or sets the Dns server list to use in the email validation.
setTimeout(int value)Gets or sets the length of time (in milliseconds) until the request times out.
toString()
validate(String mailAddress, ValidationResult[] result)Validate email address, with the MailServer validation policy.
validate(String mailAddress, int policy, ValidationResult[] result)Validating the email address
wait()
wait(long arg0)
wait(long arg0, int arg1)

EmailValidator()

public EmailValidator()

Create an instance of EmailValidator.

DomainValidating

public final Event<DomainValidatingEventHandler> DomainValidating

MailServerValidating

public final Event<MailServerValidatingEventHandler> MailServerValidating

SyntaxValidating

public final Event<SyntaxValidatingEventHandler> SyntaxValidating

beginValidate(String mailAddress, int policy, ValidationResult[] result, System.AsyncCallback asyncCallback, Object stateObject)

public final System.IAsyncResult beginValidate(String mailAddress, int policy, ValidationResult[] result, System.AsyncCallback asyncCallback, Object stateObject)

Begins an asynchronous validating process for an email address.

Parameters:

ParameterTypeDescription
mailAddressjava.lang.StringThe email address to be validated.
policyintThe policy of the validating process.
resultValidationResult[]The result of the validating process.
asyncCallbackcom.aspose.ms.System.AsyncCallbackThe AsyncCallback delegate
stateObjectjava.lang.ObjectAn object that contains state information for this request.

Returns: com.aspose.ms.System.IAsyncResult - An IAsyncResult that references the asynchronous connection.

endValidate(ValidationResult[] validationResult, System.IAsyncResult asyncResult)

public final void endValidate(ValidationResult[] validationResult, System.IAsyncResult asyncResult)

Ends an asynchronous validating process for an email address.

Parameters:

ParameterTypeDescription
validationResultValidationResult[]The result of the validating process.
asyncResultcom.aspose.ms.System.IAsyncResultAn IAsyncResult that stores state information and any user defined data for this asynchronous operation.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDnsServers()

public final String[] getDnsServers()

Gets or sets the Dns server list to use in the email validation.

Returns: java.lang.String[]

getTimeout()

public final int getTimeout()

Gets or sets the length of time (in milliseconds) until the request times out.

Returns: int

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setDnsServers(String[] value)

public final void setDnsServers(String[] value)

Gets or sets the Dns server list to use in the email validation.

Parameters:

ParameterTypeDescription
valuejava.lang.String[]

setTimeout(int value)

public final void setTimeout(int value)

Gets or sets the length of time (in milliseconds) until the request times out.

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

validate(String mailAddress, ValidationResult[] result)

public final void validate(String mailAddress, ValidationResult[] result)

Validate email address, with the MailServer validation policy.

Parameters:

ParameterTypeDescription
mailAddressjava.lang.StringThe Email address to be validated.
resultValidationResult[]The result of the validation.

validate(String mailAddress, int policy, ValidationResult[] result)

public final void validate(String mailAddress, int policy, ValidationResult[] result)

Validating the email address

Parameters:

ParameterTypeDescription
mailAddressjava.lang.StringThe mail address to be validated.
policyintThe policy of the validating process.
resultValidationResult[]The result of the validating process.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int