com.Verisign.payment
Class SecureRetryConnection

java.lang.Object
  extended bycom.Verisign.payment.SecureRetryConnection

public class SecureRetryConnection
extends java.lang.Object

SecureRetryConnection - Implements a secure connection to a host. If operations on the connection fail the first time, the connection will pause momentarily and retry the operation until a) successful, or b) the maximum number of retrys has been reached or c) a timeout value has been reached.


Constructor Summary
SecureRetryConnection(java.lang.String certPath)
           
SecureRetryConnection(java.lang.String aHostAddress, int aHostPort, int aTimeOut, java.lang.String certPath)
           
 
Method Summary
 void AddLastError(char[] s)
           
 void AddLastError(java.lang.String s)
           
 void addState(java.lang.String s)
           
 int close()
           
 int closeSSL()
           
 int ConnectToHost()
           
 void flush()
           
 java.lang.String GetLastError()
           
 java.lang.String getState()
           
 int open()
           
protected static void println()
           
protected static void println(java.lang.String textToPrint)
           
 void printState()
           
 int read(byte[] data, int start, int end)
           
 void SetConnectHost(java.lang.String s, int n)
           
 void SetHostAddress(java.lang.String s)
           
 void SetHostPort(int n)
           
 void SetLastError(char[] s)
           
 void SetLastError(java.lang.String s)
           
 void SetProxy(java.lang.String Logon, java.lang.String Pass)
           
 void SetRetry(int count)
           
 void setState(java.lang.String s)
           
 void SetTimeOut(int n)
           
 int SSLon()
          Switches on SSL processing for the socket
 int write(byte[] data)
           
 int write(byte[] data, int start, int end)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureRetryConnection

public SecureRetryConnection(java.lang.String aHostAddress,
                             int aHostPort,
                             int aTimeOut,
                             java.lang.String certPath)
                      throws java.io.IOException

SecureRetryConnection

public SecureRetryConnection(java.lang.String certPath)
                      throws java.io.IOException
Method Detail

SetHostAddress

public void SetHostAddress(java.lang.String s)

SetHostPort

public void SetHostPort(int n)

SetTimeOut

public void SetTimeOut(int n)

SetConnectHost

public void SetConnectHost(java.lang.String s,
                           int n)

SetProxy

public void SetProxy(java.lang.String Logon,
                     java.lang.String Pass)

SetRetry

public void SetRetry(int count)

GetLastError

public java.lang.String GetLastError()

SetLastError

public void SetLastError(java.lang.String s)

SetLastError

public void SetLastError(char[] s)

AddLastError

public void AddLastError(java.lang.String s)

AddLastError

public void AddLastError(char[] s)

getState

public java.lang.String getState()

setState

public void setState(java.lang.String s)

addState

public void addState(java.lang.String s)

printState

public void printState()

ConnectToHost

public int ConnectToHost()

open

public int open()

SSLon

public int SSLon()
          throws java.security.cert.CertificateException
Switches on SSL processing for the socket

Throws:
java.security.cert.CertificateException

read

public int read(byte[] data,
                int start,
                int end)

write

public int write(byte[] data)

write

public int write(byte[] data,
                 int start,
                 int end)

closeSSL

public int closeSSL()

close

public int close()

flush

public void flush()

println

protected static void println()

println

protected static void println(java.lang.String textToPrint)