org.sourceforge.jxdbcon.postgresql
Class NetProtocolV2SSL
java.lang.Object
|
+--org.sourceforge.jxdbcon.postgresql.NetProtocol
|
+--org.sourceforge.jxdbcon.postgresql.NetProtocolV1
|
+--org.sourceforge.jxdbcon.postgresql.NetProtocolV2
|
+--org.sourceforge.jxdbcon.postgresql.NetProtocolV2SSL
- All Implemented Interfaces:
- InfoKeys, PGConstants, PGInfoKeys, PGProtocol
- public class NetProtocolV2SSL
- extends NetProtocolV2
The NetProtocolV2SSL is the SSL enabled protocol implementation for V2.
- Version:
- $Revision: 1.6 $
- Author:
- Keve Müller
Nested classes inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocolV1 |
NetProtocolV1.AsciiRow, NetProtocolV1.Authentication, NetProtocolV1.BinaryRow, NetProtocolV1.CompletedResponse, NetProtocolV1.CursorResponse, NetProtocolV1.EmptyQueryResponse, NetProtocolV1.ErrorResponse, NetProtocolV1.FunctionResult, NetProtocolV1.MessageResponse, NetProtocolV1.NoticeResponse, NetProtocolV1.NotificationResponse, NetProtocolV1.RowDescription |
Fields inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocolV2 |
|
Fields inherited from interface org.sourceforge.jxdbcon.postgresql.PGConstants |
AUTH_REQ_CRYPT, AUTH_REQ_KRB4, AUTH_REQ_KRB5, AUTH_REQ_MD5, AUTH_REQ_OK, AUTH_REQ_PASSWORD, AUTH_REQ_SCM, NUMERIC_DSCALE_MASK, NUMERIC_NAN, NUMERIC_NEG, NUMERIC_POS, NUMERIC_SIGN_MASK, PG_VERSION_STR, PG_VERSION_STR1, TRIGGER_TYPE_BEFORE, TRIGGER_TYPE_DELETE, TRIGGER_TYPE_INSERT, TRIGGER_TYPE_ROW, TRIGGER_TYPE_UPDATE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetProtocolV2SSL
public NetProtocolV2SSL()
connect
public void connect(Properties info)
throws SQLException
- Description copied from class:
NetProtocolV2
- Open the connection.
The following properties are recognized:
InfoKeys.HOST (defaults to localhost), InfoKeys.PORT (defaults to 5432)
InfoKeys.CATALOG (The database name, defaults to template1)
InfoKeys.USER, InfoKeys.PASSWORD (defaults to "")
PGInfoKeys.OPTIONS, PGInfoKeys.TTY, PGInfoKeys.USESSL,
PGInfoKeys.USEASYNC
- Specified by:
connect
in interface PGProtocol
- Overrides:
connect
in class NetProtocolV2
SQLException
- See Also:
InfoKeys
,
PGInfoKeys
dispatch
public NetProtocolV1.Response dispatch(int ch)
throws IOException
- Description copied from class:
NetProtocolV1
- Identify the message by the transmitted first character.
This routine also performs COPY functions.
- Overrides:
dispatch
in class NetProtocolV2
- Returns:
- null if the character code does not map to a valid message,
else the message instance
IOException
Copyright © 2001,2002 Keve Müller; see LICENSE file for details.