Class SendHandshakeResponsePacket
java.lang.Object
org.mariadb.jdbc.internal.com.send.SendHandshakeResponsePacket
See https://mariadb.com/kb/en/library/connection/#client-handshake-response for reference.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
send
(PacketOutputStream pos, String username, String password, HostAddress currentHost, String database, long clientCapabilities, long serverCapabilities, byte serverLanguage, byte packetSeq, Options options, ReadInitialHandShakePacket greetingPacket) Send handshake response packet.private static void
writeConnectAttributes
(PacketOutputStream pos, String connectionAttributes, HostAddress currentHost)
-
Field Details
-
pidRequest
-
_CLIENT_NAME
private static final byte[] _CLIENT_NAME -
_CLIENT_VERSION
private static final byte[] _CLIENT_VERSION -
_SERVER_HOST
private static final byte[] _SERVER_HOST -
_OS
private static final byte[] _OS -
_PID
private static final byte[] _PID -
_THREAD
private static final byte[] _THREAD -
_JAVA_VENDOR
private static final byte[] _JAVA_VENDOR -
_JAVA_VERSION
private static final byte[] _JAVA_VERSION
-
-
Constructor Details
-
SendHandshakeResponsePacket
public SendHandshakeResponsePacket()
-
-
Method Details
-
send
public static void send(PacketOutputStream pos, String username, String password, HostAddress currentHost, String database, long clientCapabilities, long serverCapabilities, byte serverLanguage, byte packetSeq, Options options, ReadInitialHandShakePacket greetingPacket) throws IOException Send handshake response packet.- Parameters:
pos
- output streamusername
- user namepassword
- passwordcurrentHost
- current hostnamedatabase
- database nameclientCapabilities
- client capabilitiesserverCapabilities
- server capabilitiesserverLanguage
- server language (utf8 / utf8mb4 collation)packetSeq
- packet sequenceoptions
- user optionsgreetingPacket
- server handshake packet information- Throws:
IOException
- if socket exception occur- See Also:
-
writeConnectAttributes
private static void writeConnectAttributes(PacketOutputStream pos, String connectionAttributes, HostAddress currentHost) throws IOException - Throws:
IOException
-