Package com.aceql.jdbc.commons
Class ConnectionInfo
java.lang.Object
com.aceql.jdbc.commons.ConnectionInfo
public class ConnectionInfo extends Object
Allows to get all the info set and passed when creating an SQL
A
Connection to the remote AceQL Server.
A
ConnectionInfo instance is retrieved with the
AceQLConnection.getConnectionInfo() call:
// Casts the current Connection to get an AceQLConnection object
AceQLConnection aceqlConnection = (AceQLConnection) connection;
ConnectionInfo connectionInfo = aceqlConnection.getConnectionInfo();
System.out.println("connectTimeout: " + connectionInfo.getConnectTimeout());
System.out.println("All Info : " + connectionInfo);
// Etc.
- Since:
- 6.0
- Author:
- Nicolas de Pomereu
-
Method Summary
Modifier and Type Method Description PasswordAuthenticationgetAuthentication()Gets the main authentication info against the AceQL serverintgetConnectTimeout()Gets the specified timeout value, in milliseconds, to be used when opening a communications link to the remote server.StringgetDatabase()Gets the remote database nameEditionTypegetEditionType()Gets the AceQL Client JDBC Driver Edition: Community of Professional.ProxygetProxy()Gets theProxyin use.PasswordAuthenticationgetProxyAuthentication()Gets theProxyusername and password.intgetReadTimeout()Gets the specified timeout value, in milliseconds, to be used when opening a communications link to the remote server.Map<String,String>getRequestProperties()Gets all the request properties that are set to the underlyingHttpURLConnectionfor each http call.ResultSetMetaDataPolicygetResultSetMetaDataPolicy()Gets theResultSetMetaDataPolicy.StringgetUrl()Gets the URL of the remote databasebooleanisGzipResult()Gets a boolean that say if theResultSetis gzipped before download.booleanisPasswordSessionId()Says if the password is an AceQL Session ID.StringtoString()
-
Method Details
-
getUrl
Gets the URL of the remote database- Returns:
- the URL of the remote database
-
getDatabase
Gets the remote database name- Returns:
- the remote database name
-
getAuthentication
Gets the main authentication info against the AceQL server- Returns:
- the main authentication info
-
isPasswordSessionId
public boolean isPasswordSessionId()Says if the password is an AceQL Session ID. Applies only to Professional Edition.- Returns:
trueif the password is an AceQL Session ID, elsefalse
-
getProxy
Gets theProxyin use. Returns null if noProxyis in use.- Returns:
- the
Proxyin use.
-
getProxyAuthentication
Gets theProxyusername and password. Returns null if noProxyis in use.- Returns:
- the
Proxyusername and password.
-
getConnectTimeout
public int getConnectTimeout()Gets the specified timeout value, in milliseconds, to be used when opening a communications link to the remote server. If the timeout expires before the connection can be established, a java.net.SocketTimeoutException is raised. A timeout of zero is interpreted as an infinite timeout. SeeURLConnection.setConnectTimeout(int)- Returns:
- the connect Timeout
-
getReadTimeout
public int getReadTimeout()Gets the specified timeout value, in milliseconds, to be used when opening a communications link to the remote server. If the timeout expires before the connection can be established, a java.net.SocketTimeoutException is raised. A timeout of zero is interpreted as an infinite timeout. SeeURLConnection.setConnectTimeout(int)- Returns:
- the read Timeout
-
isGzipResult
public boolean isGzipResult()Gets a boolean that say if theResultSetis gzipped before download.- Returns:
trueif theResultSetis gzipped before download, elsefalse
-
getEditionType
Gets the AceQL Client JDBC Driver Edition: Community of Professional.- Returns:
- the Edition Type: Community of Professional.
-
getResultSetMetaDataPolicy
Gets theResultSetMetaDataPolicy. Defines theResultSetMetadata policy. Says if theResultSetMetadata is to be downloaded along with theResultSet.
This option is only used with the Professional Edition.- Returns:
- the
ResultSetMetadata policy
-
getRequestProperties
Gets all the request properties that are set to the underlyingHttpURLConnectionfor each http call.
This option is only used with the Professional Edition.- Returns:
- the request properties that are set to the underlying
HttpURLConnectionfor each http call.
-
toString
-