QJCC homepage

biz.chitec.quarterback.gjsa
Class CLServerConnector

java.lang.Object
  extended bybiz.chitec.quarterback.gjsa.ServerConnector
      extended bybiz.chitec.quarterback.gjsa.LegacyServerConnector
          extended bybiz.chitec.quarterback.gjsa.CLServerConnector

public class CLServerConnector
extends LegacyServerConnector

class to connect a Java client to a GJSA server in connectionless mode.

Version:
$Id: 17eecbd018406598f2af6a3002a660446b7b5b42 $
Author:
Dirk Hillbrecht 1997-2000, chitec/Dirk Hillbrecht 2000,2002. Distributed under the terms of the GNU LGPL.

Nested Class Summary
 
Nested classes inherited from class biz.chitec.quarterback.gjsa.LegacyServerConnector
LegacyServerConnector.Reader
 
Field Summary
private  java.lang.String[] ciphers
           
private  javax.net.ssl.SSLSocketFactory clsslfac
           
private  int refnr
           
private  int seq
           
 
Fields inherited from class biz.chitec.quarterback.gjsa.LegacyServerConnector
backgroundsession, bos, cep, conndeslist, connectionclosed, csp, desasteroccured, emptyafter, encmode, encryptionstrategy, ers, ess, ffi, FLOODTIME, forcestring, host, LINETOGGLETIME, lwt, MAXFLOODCOUNT, mess, mustbereestablished, myscnum, objmode, oos, pname, port, printerr, pvp, reader, reestablishcommands, SLEEPTIME, socket, SOCKET_SO_TIME, sr, sslmode, staticlwtnum, staticnum, staticreadernum, syncburstreceiver, syncburstreceiverthread, ti
 
Constructor Summary
CLServerConnector(int port)
           
CLServerConnector(java.lang.String host, int port)
           
CLServerConnector(java.lang.String host, int port, java.lang.String encstrat)
           
CLServerConnector(java.lang.String xhost, int xport, java.lang.String pname, java.util.List pvp)
           
CLServerConnector(java.lang.String xhost, int xport, java.lang.String pname, java.util.List pvp, java.lang.String encstrat)
          Tries to open a connection to the given host/port-pair.
 
Method Summary
 void close()
          Description of the Method
protected  void openConnection()
          opens the connection to the server.
 ServerEnvelope query(ServerEnvelope se)
          low level query routine with IOException
 
Methods inherited from class biz.chitec.quarterback.gjsa.LegacyServerConnector
addConnectionDesasterListener, addConnectionEncryptionPresentor, addConnectionStatePresentor, attachSyncBurstReceiver, closeConnection, connDesaster, connectionOnHold, disableErrorMsgs, getEncodingMode, getEncryptionAdvice, isBackgroundSession, isEncrypting, isObjectConnection, removeConnectionDesasterListener, removeConnectionStatePresentor, setBackgroundSession, setFreeFloatingInterface, setMessageLogger, setReaderPriority, startLineWakeupToggler, stopSyncBurstReceiver
 
Methods inherited from class biz.chitec.quarterback.gjsa.ServerConnector
openLegacyServerConnector, openLegacyServerConnector, openLegacyServerConnector, openLegacyServerConnector, openLegacyServerConnector, openLegacyServerConnector, openLegacyServerConnector, query, query, query, query, query, query, query, query, query, query, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE, queryNE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

refnr

private int refnr

seq

private int seq

clsslfac

private javax.net.ssl.SSLSocketFactory clsslfac

ciphers

private java.lang.String[] ciphers
Constructor Detail

CLServerConnector

public CLServerConnector(java.lang.String xhost,
                         int xport,
                         java.lang.String pname,
                         java.util.List pvp,
                         java.lang.String encstrat)
                  throws java.io.IOException
Tries to open a connection to the given host/port-pair. In the first stage, Reader and Writer are opened to the socket to perform the String protocol the server is always in at any connection start. After switching to Object protocol, the Reader thread is startened.


CLServerConnector

public CLServerConnector(java.lang.String xhost,
                         int xport,
                         java.lang.String pname,
                         java.util.List pvp)
                  throws java.io.IOException

CLServerConnector

public CLServerConnector(java.lang.String host,
                         int port,
                         java.lang.String encstrat)
                  throws java.io.IOException

CLServerConnector

public CLServerConnector(java.lang.String host,
                         int port)
                  throws java.io.IOException

CLServerConnector

public CLServerConnector(int port)
                  throws java.io.IOException
Method Detail

openConnection

protected void openConnection()
                       throws java.io.IOException
Description copied from class: LegacyServerConnector
opens the connection to the server. Relies on several object variables. Note that this method must be called either from constructors or from within a synchronized block.

Overrides:
openConnection in class LegacyServerConnector
Throws:
java.io.IOException - Description of the Exception

close

public void close()
Description copied from class: LegacyServerConnector
Description of the Method

Overrides:
close in class LegacyServerConnector

query

public ServerEnvelope query(ServerEnvelope se)
                     throws java.io.IOException
low level query routine with IOException

Overrides:
query in class LegacyServerConnector
Parameters:
se - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

QJCC homepage