|
|||||||||
| Home >> All >> com >> mysql >> [ jdbc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.mysql.jdbc
Interface SocketFactory

- All Known Implementing Classes:
- NamedPipeSocketFactory, StandardSocketFactory
- public interface SocketFactory
Interface to allow pluggable socket creation in the driver
| Method Summary | |
java.net.Socket |
afterHandshake()
Called by the driver after issuing the MySQL protocol handshake and reading the results of the handshake. |
java.net.Socket |
beforeHandshake()
Called by the driver before issuing the MySQL protocol handshake. |
java.net.Socket |
connect(java.lang.String host,
int portNumber,
java.util.Properties props)
Creates a new socket using the given properties. |
| Method Detail |
afterHandshake
public java.net.Socket afterHandshake() throws java.net.SocketException, java.io.IOException
- Called by the driver after issuing the MySQL protocol handshake and
reading the results of the handshake.
beforeHandshake
public java.net.Socket beforeHandshake() throws java.net.SocketException, java.io.IOException
- Called by the driver before issuing the MySQL protocol handshake.
Should return the socket instance that should be used during
the handshake.
connect
public java.net.Socket connect(java.lang.String host, int portNumber, java.util.Properties props) throws java.net.SocketException, java.io.IOException
- Creates a new socket using the given properties. Properties are parsed
by the driver from the URL. All properties other than sensitive ones
(user and password) are passed to this method. The driver will
instantiate the socket factory with the class name given in the
property "socketFactory", where the standard is
com.mysql.jdbc.StandardSocketFactoryImplementing classes are responsible for handling synchronization of this method (if needed).
|
|||||||||
| Home >> All >> com >> mysql >> [ jdbc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC