public final class Capability extends Object
Some flags should not be disabled by driver or always enabled. These flags may have no getter or builder setter, or neither.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getBitmap()
Get the original bitmap of
this. |
int |
hashCode() |
boolean |
isConnectionAttributesAllowed()
Checks if the connection contains connection attributes.
|
boolean |
isConnectWithDatabase()
Checks if the connection will be connected and logon with a database.
|
boolean |
isEofDeprecated()
Checks if server marks EOF message as deprecated.
|
boolean |
isMultiStatementsAllowed()
Checks if server supports multiple-statement.
|
boolean |
isPluginAuthAllowed()
Checks if allow authentication plugin type name.
|
boolean |
isProtocol41()
Checks if the connection is using protocol 4.1.
|
boolean |
isSaltSecured()
Checks if server uses more than 8 bytes of salt.
|
boolean |
isSslEnabled()
Checks if the connection enabled SSL.
|
boolean |
isTransactionAllowed()
Checks if server supports transaction.
|
boolean |
isVarIntSizedAuthAllowed()
Checks if can use var-integer sized bytes to encode client authentication.
|
static Capability |
of(int capabilities)
Creates a
Capability with capabilities bitmap. |
String |
toString() |
public boolean isConnectWithDatabase()
public boolean isSslEnabled()
public boolean isProtocol41()
public boolean isVarIntSizedAuthAllowed()
public boolean isPluginAuthAllowed()
public boolean isConnectionAttributesAllowed()
public boolean isMultiStatementsAllowed()
public boolean isEofDeprecated()
public boolean isSaltSecured()
public boolean isTransactionAllowed()
public int getBitmap()
this.public static Capability of(int capabilities)
Capability with capabilities bitmap. It will unset all unknown flags.capabilities - the capabilities bitmap.Capability without unknown flags.Copyright © 2018–2023 asyncer.io. All rights reserved.