com.ibm.security.certclient.beans

Class PkTcpClient

  1. java.lang.Object
  2. extended bycom.ibm.security.certclient.base.PkSource
  3. extended bycom.ibm.security.certclient.base.PkPipe
  4. extended bycom.ibm.security.certclient.beans.PkTcpClient
All implemented interfaces:
PkListener, EventListener

  1. public class PkTcpClient
  2. extends PkPipe
Author:
Krishna Yellepeddy , Eric Storch

Field Summary

Fields inherited from class com.ibm.security.certclient.base.PkSource
isInitialized

Constructor Summary

Constructor and Description
PkTcpClient(String host,int port,PkEventFormatter eventFormatter,int numConns)
PkTcpClient(String host,int port,PkEventFormatter eventFormatter,int numConns,SocketFactory socketFactory)

Method Summary

Modifier and Type Method and Description
  1. void
close()
  1. PkRepEvent
doReq(PkReqEvent req)
  1. void
finalize()
Methods inherited from class com.ibm.security.certclient.base.PkPipe
doCertReq, doConfReq, doGnrlReq, doHttpReq, doInitReq, doKrecReq, doKupdReq, doPollReq, doRevoReq, doSecnReq, doXcerReq
Methods inherited from class com.ibm.security.certclient.base.PkSource
addPkListener, init, initialize, initNext, propagate, propagate, propagate, propagate, propagate, propagate, propagate, propagate, propagate, propagate, propagate, removePkListener, replacePkListener
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.security.certclient.base.PkListener
initialize

Constructor Detail

PkTcpClient

  1. public PkTcpClient(String host,
  2. int port,
  3. PkEventFormatter eventFormatter,
  4. int numConns)
  5. throws PkException
Throws:

PkTcpClient

  1. public PkTcpClient(String host,
  2. int port,
  3. PkEventFormatter eventFormatter,
  4. int numConns,
  5. SocketFactory socketFactory)
  6. throws PkException
Throws:

Method Detail

finalize

  1. public void finalize()
  2. throws PkException
Overrides:
finalize in class Object
Throws:

close

  1. public void close()
  2. throws PkException
Throws:

doReq

  1. public PkRepEvent doReq(PkReqEvent req)
  2. throws PkException
Description copied from class: PkPipe
Returns the reply for a given request.

This is the most general form of the request handler methods, it gets called when the bean has not provided a more specific method to handle the request.

The PkPipe implementation simply propagates the request event to the next listener in the chain.

Specified by:
doReq in interface PkListener
Overrides:
doReq in class PkPipe
Throws: