com.Verisign.payment
Class SecureRetryConnection
java.lang.Object
com.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)