jxDBCon 0.9z

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 Class Summary
(package private) static class NetProtocolV2SSL.SSLResponse
          Fetch the SSL response.
 
Nested classes inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocolV2
NetProtocolV2.BackendKeyData, NetProtocolV2.ReadyForQuery
 
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
 
Field Summary
 
Fields inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocolV2
 
Fields inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocolV1
nFields
 
Fields inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocol
copyInStream, copyOutStream, in, lock, messageEncoding, out, socket
 
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
 
Fields inherited from interface org.sourceforge.jxdbcon.postgresql.PGInfoKeys
FORCECLIENTENC, OPTIONS, PROTOVERSION, SETTIMEZONE, STRICTSCHEMA, TTY, USEASYNC, USECLIENTENC, USEDBENC, USESSL
 
Fields inherited from interface org.sourceforge.jxdbcon.InfoKeys
CATALOG, DESCRIPTION, DRIVER, HOST, PASSWORD, PORT, SUBDRIVER, USER
 
Constructor Summary
NetProtocolV2SSL()
           
 
Method Summary
 void connect(Properties info)
          Open the connection.
 NetProtocolV1.Response dispatch(int ch)
          Identify the message by the transmitted first character.
 
Methods inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocolV2
close, doLogin, exec, exec, requestCancel, sendStartup
 
Methods inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocolV1
readFirst, sendClose, sendFunctionCall, sendPassword, sendQuery, sendStartup
 
Methods inherited from class org.sourceforge.jxdbcon.postgresql.NetProtocol
connectSocket, limString, readCString, setCopyInStream, setCopyOutStream, setMessageEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetProtocolV2SSL

public NetProtocolV2SSL()
Method Detail

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

jxDBCon 0.9z

Copyright © 2001,2002 Keve Müller; see LICENSE file for details.