EmailClient

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IDisposable, java.io.Closeable

public abstract class EmailClient implements System.IDisposable, Closeable

Represents the client that creates server connection by using the host credentials.

Methods

MethodDescription
bindIPEndPoint(BindIPEndPointHandler handler)Associates a Socket with a local endpoint.
cancelAsyncOperation(System.IAsyncResult asyncResult)Cancels asynchronous operation.
close()
connectIPEndPoint(BindIPEndPointHandler handler)Associates a Socket with a remote endpoint.
createConnection()Creates new independent connection for operations not linked to threads (not default connection).
createConnection(boolean createAsDefaultConnection)Creates new (default or independent) connection for operations.
dispose()Finalizes all operations with a server.
equals(Object arg0)
getAccessToken()Gets or sets the access token.
getCapabilities()Get Capabilities.
getClass()
getClientCertificates()Contains collection of clients certificates
getConnectionAsgmtMode()Gets or sets value which defines mode of connection allocation in multiple threads environment There are folowing connection types: - Main connection is connection created and disposed together with mail client.It can’t be created or disposed manually.
getConnectionCheckupPeriod()Period of connection checking up in milliseconds.
getConnectionState()Gets the current state of the connection.
getConnectionsQuantity()Gets or sets quantity of connections in multy-connection mode
getCurrentConnection()Gets current connection according to ConnectionAsgmtMode option
getDefaultPort()Gets default port for client
getEnableLogger()Gets or sets value which allows enable/disable logger
getGreetingTimeout()Gets or sets the greeting timeout that is used when establishing a connection.
getHost()Gets or sets the host name.
getLogFileName()Gets or sets log file name
getPassword()Gets or sets the password.
getPort()Gets or sets the port.
getProxy()Gets or sets proxy for the client
getSecurityOptions()Security mode for a mail client
getSupportedEncryption()Defines the versions of SSL/TLS encryption protocols to be used.
getTimeout()Gets or sets the timeout for mail operations
getTokenProvider()Gets or sets TokenProvider allowing to retrieve access token.
getUseAuthentication()Indicates whether authentication is used.
getUseDateInLogFileName()Gets or sets value which indicates if date has to be used in log file name.
getUseDefaultCredentials()Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests.
getUseMultiConnection()Gets or sets value which indicates if client has to use multiple connections for heavy loaded operations.
getUsePipelining()Gets or sets object which indicates whether the pipelining mode is enabled.
getUsername()Gets or sets the username.
hashCode()
noop()‘No operation’ command
noop(IConnection connection)‘No operation’ command
notify()
notifyAll()
resetLogSettings()Resets logging settings to default.
setAccessToken(String value)Gets or sets the access token.
setConnectionAsgmtMode(int value)Gets or sets value which defines mode of connection allocation in multiple threads environment There are folowing connection types: - Main connection is connection created and disposed together with mail client.It can’t be created or disposed manually.
setConnectionCheckupPeriod(int value)Period of connection checking up in milliseconds.
setConnectionsQuantity(int value)Gets or sets quantity of connections in multy-connection mode
setEnableLogger(boolean value)Gets or sets value which allows enable/disable logger
setGreetingTimeout(int value)Gets or sets the greeting timeout that is used when establishing a connection.
setHost(String value)Gets or sets the host name.
setLogFileName(String value)Gets or sets log file name
setPassword(String value)Gets or sets the password.
setPort(int value)Gets or sets the port.
setProxy(Proxy value)Gets or sets proxy for the client
setSecurityOptions(int value)Security mode for a mail client
setShowCredentialsInLog(boolean value)Sets value indicating whether Credentials should be displayed in the log.
setSocketsLayerVersion2(boolean value)Sets value indicating whether Sockets Layer version 2 is used.
setSocketsLayerVersion2DisableSSLCertificateValidation(boolean value)Disable SSL certificate validation for Sockets Layer version 2
setSocketsLayerVersion2SSLSocketFactory(SSLSocketFactory value)Set SSL Socket Factory for Sockets Layer version 2
setSupportedEncryption(int value)Defines the versions of SSL/TLS encryption protocols to be used.
setSupportedEncryptionUnsafe(int value)Defines the versions of SSL/TLS encryption protocols to be used.
setTimeout(int value)Gets or sets the timeout for mail operations
setTokenProvider(ITokenProvider value)Gets or sets TokenProvider allowing to retrieve access token.
setUseAuthentication(boolean value)Indicates whether authentication is used.
setUseDateInLogFileName(boolean value)Gets or sets value which indicates if date has to be used in log file name.
setUseDefaultCredentials(boolean value)Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests.
setUseMultiConnection(int value)Gets or sets value which indicates if client has to use multiple connections for heavy loaded operations.
setUsePipelining(PipeliningStatus value)Gets or sets object which indicates whether the pipelining mode is enabled.
setUsername(String value)Gets or sets the username.
toString()
usePasswordQuotes(boolean value)Sets a value indicating whether Quotes should be used in login password syntax with special characters.
validateCredentials()Checks if the credentials are valid
wait()
wait(long arg0)
wait(long arg0, int arg1)

bindIPEndPoint(BindIPEndPointHandler handler)

public void bindIPEndPoint(BindIPEndPointHandler handler)

Associates a Socket with a local endpoint.

Parameters:

ParameterTypeDescription
handlerBindIPEndPointHandler

cancelAsyncOperation(System.IAsyncResult asyncResult)

public final void cancelAsyncOperation(System.IAsyncResult asyncResult)

Cancels asynchronous operation.

Parameters:

ParameterTypeDescription
asyncResultcom.aspose.ms.System.IAsyncResultDefines asynchronous operation to cancel.

close()

public void close()

connectIPEndPoint(BindIPEndPointHandler handler)

public void connectIPEndPoint(BindIPEndPointHandler handler)

Associates a Socket with a remote endpoint.

Parameters:

ParameterTypeDescription
handlerBindIPEndPointHandler

createConnection()

public IConnection createConnection()

Creates new independent connection for operations not linked to threads (not default connection). Invocation of this method is similar to invocation of CreateConnection(createAsDefaultConnection = false) Please see more in documentation for EmailClient.ConnectionAsgmtMode property.

Returns: IConnection - Returns connection object

createConnection(boolean createAsDefaultConnection)

public IConnection createConnection(boolean createAsDefaultConnection)

Creates new (default or independent) connection for operations. Please see more in documentation for EmailClient.ConnectionAsgmtMode property.

Parameters:

ParameterTypeDescription
createAsDefaultConnectionbooleanIndicates if connection has to be created as default for current thread

Returns: IConnection - Returns connection object

dispose()

public void dispose()

Finalizes all operations with a server.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAccessToken()

public String getAccessToken()

Gets or sets the access token.

Value: The string that represents access token.

Returns: java.lang.String

getCapabilities()

public String[] getCapabilities()

Get Capabilities.

Returns: java.lang.String[]

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getClientCertificates()

public System.Security.Cryptography.X509Certificates.X509CertificateCollection getClientCertificates()

Contains collection of clients certificates

Returns: com.aspose.ms.System.Security.Cryptography.X509Certificates.X509CertificateCollection

getConnectionAsgmtMode()

public int getConnectionAsgmtMode()

Gets or sets value which defines mode of connection allocation in multiple threads environment There are folowing connection types: - Main connection is connection created and disposed together with mail client.It can’t be created or disposed manually. - Default connection is connection default for some thread. If default connection exists and ConnectionAsgmtMode allow, all methods of email client executed in this thread will be implicitly use this connection. Only one default connection can be exist per thread. It can be created manually or automatically. It depends on EmailClient.ConnectionAsgmtMode property. These connections can be created manually with EmailClient.CreateConnection(createAsDefaultConnection = true) method. If default connection does not used(depends on connection allocation mode), main connection used implicitly instead of it. - Independent connections are connections that are not linked to threads.They can be created manually and has to be used explicitly as method parameter. These connections can be created manually with EmailClient.CreateConnection() method or EmailClient.CreateConnection(createAsDefaultConnection = false) method. There are folowing connection allocation types: - ConnectionAsgmtType.UseMainOrDefault This mode uses by default in email clients. Email client uses main connection for all operations from multiple threads if default connection hasn’t been created, or connection hasnt been passed as method parameter explicitly. Main connection is connection which is created in the same time like email client. User can create default connections for threads with CreateConnection method. If default connection for thread is created, it’s used implicitly for all methods of email client which are invoked in this thread. If default connection for thread is not created, main connection is used for all methods of email client which are invoked in this thread. User also can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. Default connection can be only one per thread. Please note default connections works correctly if user uses Thread objects for multitasking programming. If user uses ConnectionPool or uses Task objects for multitasking programming this mode may lead to wrong behaviour of a programm. To avoid this problem user has to manually dispose default conection (if he uses it) in the end of the code which executes in the thread. - ConnectionAsgmtType.UseMain Email client uses main connection for all operations from multiple threads. Main connection is connection which is created in the same time like email client. User cann’t create default connections. User can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. - ConnectionAsgmtType.UseDefault Email client uses implicitly only default connections for all operations from multiple threads. Main connection is not used in this mode. If default connection hasn’t been created for some thread (first invocation of email client method), email client creates default connection implicitly for thread before first operation is executed. User can’t create default connections for threads with CreateConnection method because they are created automatically. When default connection for thread is created, it’s used implicitly for all methods of email client which are invoked in this thread.read. User also can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. Default connection can be only one per thread. Please note default connections works correctly if user uses Thread objects for multitasking programming. If user uses ConnectionPool or uses Task objects for multitasking programming this mode may lead to wrong behaviour of a programm. To avoid this problem user has to manually dispose default conection in the end of the code which executes in the thread.

Returns: int

getConnectionCheckupPeriod()

public int getConnectionCheckupPeriod()

Period of connection checking up in milliseconds. Default value is 5 min.

Returns: int

getConnectionState()

public final int getConnectionState()

Gets the current state of the connection.

Returns: int

getConnectionsQuantity()

public int getConnectionsQuantity()

Gets or sets quantity of connections in multy-connection mode

Returns: int

getCurrentConnection()

public IConnection getCurrentConnection()

Gets current connection according to ConnectionAsgmtMode option

Returns: IConnection

getDefaultPort()

public int getDefaultPort()

Gets default port for client

Returns: int

getEnableLogger()

public final boolean getEnableLogger()

Gets or sets value which allows enable/disable logger

Returns: boolean

getGreetingTimeout()

public final int getGreetingTimeout()

Gets or sets the greeting timeout that is used when establishing a connection. Please note, greeting timeout can’t be infinite. Email clients may execute enough long operations. To limit the time of operations users have to use EmailClient.Timeout (#getTimeout.getTimeout/#setTimeout(int).setTimeout(int)) property. Values for this property have to have long intervals to not prevent long-time operations. But in some cases, if EmailClient will use only Timeout property connection establishing may take a long time. For instance, the mail client may use the automatic mode to connection establishing. In this mode, the email client goes through all possible connection parameters until the connection is established. SMTP, IMAP, and POP3 servers in case of correct connection establishing send greeting string to the client. Servers may use implicit or explicit (START TLS) SSL/TLS connection initiation. If connection mode is mismatched (for instance, the server waits for an implicit SSL connection but the client tries to establish a non-secured or explicit SSL connection), the server won’t send a greeting string. In this case, the user will wait a long time until the timeout reaches a greeting string, and the client goes to the next connection option. To avoid this problem, the GreetingTimeout property has been introduced. This property allows you to set the timeout for greeting string, and reduce the time of automatic connection establishment.

Value: The greeting timeout in milliseconds

Returns: int

getHost()

public String getHost()

Gets or sets the host name.

Value: The host name.

Returns: java.lang.String

getLogFileName()

public final String getLogFileName()

Gets or sets log file name

Returns: java.lang.String

getPassword()

public String getPassword()

Gets or sets the password. Password limitations are defined by server implementation, which client connects.

Value: The string that represents the password.

Returns: java.lang.String

getPort()

public int getPort()

Gets or sets the port.

Value: The port number.

Returns: int

getProxy()

public Proxy getProxy()

Gets or sets proxy for the client

Returns: Proxy

getSecurityOptions()

public int getSecurityOptions()

Security mode for a mail client

Returns: int

getSupportedEncryption()

public int getSupportedEncryption()

Defines the versions of SSL/TLS encryption protocols to be used. PLEASE PAY YOUR ATTENTION, you may set only those versions of protocol, which are supported by .net framework. IF SOME VERSIONS OF PROTOCOL ARE NOT SUPPORTED BY YOUR CURRENT VERSION OF FRAMEWORK, THEY WILL BE IGNORED AND SKIPPED. IT MAY LEAD TO DOWNGRADE TLS SECURITY LEVEL. IN THIS CASE EXCEPTION WON’T BE GENERATED!!! Please, see EncryptionProtocols documentation for more details. Please use #setSupportedEncryptionUnsafe(int).setSupportedEncryptionUnsafe(int) method if you want to set the encryption protocols without any compatibility checks. Default value is: Tls | Tls11 | Tls12 | Tls13 (in case if your current version of .net framework supports these versions of TLS)

Returns: int

getTimeout()

public final int getTimeout()

Gets or sets the timeout for mail operations

Value: The timeout in milliseconds

Returns: int

getTokenProvider()

public final ITokenProvider getTokenProvider()

Gets or sets TokenProvider allowing to retrieve access token.

Returns: ITokenProvider

getUseAuthentication()

public boolean getUseAuthentication()

Indicates whether authentication is used.

Returns: boolean

getUseDateInLogFileName()

public final boolean getUseDateInLogFileName()

Gets or sets value which indicates if date has to be used in log file name.

Returns: boolean

getUseDefaultCredentials()

public boolean getUseDefaultCredentials()

Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests. This option is used with NTLM authentication ONLY!

Returns: boolean

getUseMultiConnection()

public int getUseMultiConnection()

Gets or sets value which indicates if client has to use multiple connections for heavy loaded operations. Please note, using of this mode not necessary has to lead to performance increasing.

Returns: int

getUsePipelining()

public PipeliningStatus getUsePipelining()

Gets or sets object which indicates whether the pipelining mode is enabled.

Returns: PipeliningStatus

getUsername()

public String getUsername()

Gets or sets the username.

Value: The username string.

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

noop()

public abstract void noop()

‘No operation’ command

noop(IConnection connection)

public abstract void noop(IConnection connection)

‘No operation’ command

Parameters:

ParameterTypeDescription
connectionIConnectionConnection to a server

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

resetLogSettings()

public final void resetLogSettings()

Resets logging settings to default.

setAccessToken(String value)

public void setAccessToken(String value)

Gets or sets the access token.

Value: The string that represents access token.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setConnectionAsgmtMode(int value)

public void setConnectionAsgmtMode(int value)

Gets or sets value which defines mode of connection allocation in multiple threads environment There are folowing connection types: - Main connection is connection created and disposed together with mail client.It can’t be created or disposed manually. - Default connection is connection default for some thread. If default connection exists and ConnectionAsgmtMode allow, all methods of email client executed in this thread will be implicitly use this connection. Only one default connection can be exist per thread. It can be created manually or automatically. It depends on EmailClient.ConnectionAsgmtMode property. These connections can be created manually with EmailClient.CreateConnection(createAsDefaultConnection = true) method. If default connection does not used(depends on connection allocation mode), main connection used implicitly instead of it. - Independent connections are connections that are not linked to threads.They can be created manually and has to be used explicitly as method parameter. These connections can be created manually with EmailClient.CreateConnection() method or EmailClient.CreateConnection(createAsDefaultConnection = false) method. There are folowing connection allocation types: - ConnectionAsgmtType.UseMainOrDefault This mode uses by default in email clients. Email client uses main connection for all operations from multiple threads if default connection hasn’t been created, or connection hasnt been passed as method parameter explicitly. Main connection is connection which is created in the same time like email client. User can create default connections for threads with CreateConnection method. If default connection for thread is created, it’s used implicitly for all methods of email client which are invoked in this thread. If default connection for thread is not created, main connection is used for all methods of email client which are invoked in this thread. User also can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. Default connection can be only one per thread. Please note default connections works correctly if user uses Thread objects for multitasking programming. If user uses ConnectionPool or uses Task objects for multitasking programming this mode may lead to wrong behaviour of a programm. To avoid this problem user has to manually dispose default conection (if he uses it) in the end of the code which executes in the thread. - ConnectionAsgmtType.UseMain Email client uses main connection for all operations from multiple threads. Main connection is connection which is created in the same time like email client. User cann’t create default connections. User can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. - ConnectionAsgmtType.UseDefault Email client uses implicitly only default connections for all operations from multiple threads. Main connection is not used in this mode. If default connection hasn’t been created for some thread (first invocation of email client method), email client creates default connection implicitly for thread before first operation is executed. User can’t create default connections for threads with CreateConnection method because they are created automatically. When default connection for thread is created, it’s used implicitly for all methods of email client which are invoked in this thread.read. User also can create connections not linked with threads (not default connections) with CreateConnection method. If user wants to use other connections (not main and not default) he has to pass this connection explicitly as parameter of a method which he wants to use. User can additionally create any number of connections. Default connection can be only one per thread. Please note default connections works correctly if user uses Thread objects for multitasking programming. If user uses ConnectionPool or uses Task objects for multitasking programming this mode may lead to wrong behaviour of a programm. To avoid this problem user has to manually dispose default conection in the end of the code which executes in the thread.

Parameters:

ParameterTypeDescription
valueint

setConnectionCheckupPeriod(int value)

public void setConnectionCheckupPeriod(int value)

Period of connection checking up in milliseconds. Default value is 5 min.

Parameters:

ParameterTypeDescription
valueint

setConnectionsQuantity(int value)

public void setConnectionsQuantity(int value)

Gets or sets quantity of connections in multy-connection mode

Parameters:

ParameterTypeDescription
valueint

setEnableLogger(boolean value)

public final void setEnableLogger(boolean value)

Gets or sets value which allows enable/disable logger

Parameters:

ParameterTypeDescription
valueboolean

setGreetingTimeout(int value)

public final void setGreetingTimeout(int value)

Gets or sets the greeting timeout that is used when establishing a connection. Please note, greeting timeout can’t be infinite. Email clients may execute enough long operations. To limit the time of operations users have to use EmailClient.Timeout (#getTimeout.getTimeout/#setTimeout(int).setTimeout(int)) property. Values for this property have to have long intervals to not prevent long-time operations. But in some cases, if EmailClient will use only Timeout property connection establishing may take a long time. For instance, the mail client may use the automatic mode to connection establishing. In this mode, the email client goes through all possible connection parameters until the connection is established. SMTP, IMAP, and POP3 servers in case of correct connection establishing send greeting string to the client. Servers may use implicit or explicit (START TLS) SSL/TLS connection initiation. If connection mode is mismatched (for instance, the server waits for an implicit SSL connection but the client tries to establish a non-secured or explicit SSL connection), the server won’t send a greeting string. In this case, the user will wait a long time until the timeout reaches a greeting string, and the client goes to the next connection option. To avoid this problem, the GreetingTimeout property has been introduced. This property allows you to set the timeout for greeting string, and reduce the time of automatic connection establishment.

Value: The greeting timeout in milliseconds

Parameters:

ParameterTypeDescription
valueint

setHost(String value)

public void setHost(String value)

Gets or sets the host name.

Value: The host name.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setLogFileName(String value)

public final void setLogFileName(String value)

Gets or sets log file name

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPassword(String value)

public void setPassword(String value)

Gets or sets the password. Password limitations are defined by server implementation, which client connects.

Value: The string that represents the password.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPort(int value)

public void setPort(int value)

Gets or sets the port.

Value: The port number.

Parameters:

ParameterTypeDescription
valueint

setProxy(Proxy value)

public void setProxy(Proxy value)

Gets or sets proxy for the client

Parameters:

ParameterTypeDescription
valueProxy

setSecurityOptions(int value)

public void setSecurityOptions(int value)

Security mode for a mail client

Parameters:

ParameterTypeDescription
valueint

setShowCredentialsInLog(boolean value)

public static void setShowCredentialsInLog(boolean value)

Sets value indicating whether Credentials should be displayed in the log. By default, is False.

Parameters:

ParameterTypeDescription
valuebooleanTrue if Credentials should be displayed in the log.

setSocketsLayerVersion2(boolean value)

public static void setSocketsLayerVersion2(boolean value)

Sets value indicating whether Sockets Layer version 2 is used. By default, Sockets Layer version 2 is used.

Parameters:

ParameterTypeDescription
valuebooleanFalse if Sockets Layer version 1 should be used.

setSocketsLayerVersion2DisableSSLCertificateValidation(boolean value)

public static void setSocketsLayerVersion2DisableSSLCertificateValidation(boolean value)

Disable SSL certificate validation for Sockets Layer version 2

Parameters:

ParameterTypeDescription
valueboolean

setSocketsLayerVersion2SSLSocketFactory(SSLSocketFactory value)

public static void setSocketsLayerVersion2SSLSocketFactory(SSLSocketFactory value)

Set SSL Socket Factory for Sockets Layer version 2

Parameters:

ParameterTypeDescription
valuejavax.net.ssl.SSLSocketFactory

setSupportedEncryption(int value)

public void setSupportedEncryption(int value)

Defines the versions of SSL/TLS encryption protocols to be used. PLEASE PAY YOUR ATTENTION, you may set only those versions of protocol, which are supported by .net framework. IF SOME VERSIONS OF PROTOCOL ARE NOT SUPPORTED BY YOUR CURRENT VERSION OF FRAMEWORK, THEY WILL BE IGNORED AND SKIPPED. IT MAY LEAD TO DOWNGRADE TLS SECURITY LEVEL. IN THIS CASE EXCEPTION WON’T BE GENERATED!!! Please, see EncryptionProtocols documentation for more details. Please use #setSupportedEncryptionUnsafe(int).setSupportedEncryptionUnsafe(int) method if you want to set the encryption protocols without any compatibility checks. Default value is: Tls | Tls11 | Tls12 | Tls13 (in case if your current version of .net framework supports these versions of TLS)

Parameters:

ParameterTypeDescription
valueint

setSupportedEncryptionUnsafe(int value)

public final void setSupportedEncryptionUnsafe(int value)

Defines the versions of SSL/TLS encryption protocols to be used. This method is not safe and sets the encryption protocols without any compatibility checks. Use SupportedEncryption (#getSupportedEncryption.getSupportedEncryption/#setSupportedEncryption(int).setSupportedEncryption(int)) property to safely set only protocols that definitely supported by framework. Please note, if your current framework does not support this level of security, an exception will be thrown when trying to establish a connection to the server.

Parameters:

ParameterTypeDescription
valueint

setTimeout(int value)

public final void setTimeout(int value)

Gets or sets the timeout for mail operations

Value: The timeout in milliseconds

Parameters:

ParameterTypeDescription
valueint

setTokenProvider(ITokenProvider value)

public final void setTokenProvider(ITokenProvider value)

Gets or sets TokenProvider allowing to retrieve access token.

Parameters:

ParameterTypeDescription
valueITokenProvider

setUseAuthentication(boolean value)

public void setUseAuthentication(boolean value)

Indicates whether authentication is used.

Parameters:

ParameterTypeDescription
valueboolean

setUseDateInLogFileName(boolean value)

public final void setUseDateInLogFileName(boolean value)

Gets or sets value which indicates if date has to be used in log file name.

Parameters:

ParameterTypeDescription
valueboolean

setUseDefaultCredentials(boolean value)

public void setUseDefaultCredentials(boolean value)

Gets or sets a Boolean value that controls whether the DefaultCredentials are sent with requests. This option is used with NTLM authentication ONLY!

Parameters:

ParameterTypeDescription
valueboolean

setUseMultiConnection(int value)

public void setUseMultiConnection(int value)

Gets or sets value which indicates if client has to use multiple connections for heavy loaded operations. Please note, using of this mode not necessary has to lead to performance increasing.

Parameters:

ParameterTypeDescription
valueint

setUsePipelining(PipeliningStatus value)

public void setUsePipelining(PipeliningStatus value)

Gets or sets object which indicates whether the pipelining mode is enabled.

Parameters:

ParameterTypeDescription
valuePipeliningStatus

setUsername(String value)

public void setUsername(String value)

Gets or sets the username.

Value: The username string.

Parameters:

ParameterTypeDescription
valuejava.lang.String

toString()

public String toString()

Returns: java.lang.String

usePasswordQuotes(boolean value)

public static void usePasswordQuotes(boolean value)

Sets a value indicating whether Quotes should be used in login password syntax with special characters. By default, is True.

Parameters:

ParameterTypeDescription
valuebooleanFalse if Quotes should not be used in login password syntax.

validateCredentials()

public abstract boolean validateCredentials()

Checks if the credentials are valid

Returns: boolean - True if authentication was successful, otherwise false.

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