com.ibm.as400.access
Class PxClientConnectionAdapter
- java.lang.Object
-
- com.ibm.as400.access.PxClientConnectionAdapter
-
public abstract class PxClientConnectionAdapter extends java.lang.Object
The PxClientConnectionAdapter class represents the connection to a proxy server.
-
-
Constructor Summary
Constructors Modifier Constructor and Description protected
PxClientConnectionAdapter(java.lang.String proxyServer, com.ibm.as400.access.SSLOptions secure)
-
Method Summary
Methods Modifier and Type Method and Description void
close()
Closes the connection to the proxy server. // @D1a question -- should we do something in the tunneling case // to clean up the server?protected void
finalize()
com.ibm.as400.access.PxDSFactory
getFactory()
java.lang.String
getSystemName()
void
open(java.lang.String proxyServer)
protected void
send(PxReqCV request)
Sends a request to the proxy server.protected java.lang.Object
sendAndReceive(PxReqCV request)
Sends a request to the proxy server and receives and processes a reply.
-
-
-
Constructor Detail
-
PxClientConnectionAdapter
protected PxClientConnectionAdapter(java.lang.String proxyServer, com.ibm.as400.access.SSLOptions secure)
-
-
Method Detail
-
close
public void close()
Closes the connection to the proxy server. // @D1a question -- should we do something in the tunneling case // to clean up the server?
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
getFactory
public com.ibm.as400.access.PxDSFactory getFactory()
-
open
public void open(java.lang.String proxyServer)
-
send
protected void send(PxReqCV request)
Sends a request to the proxy server. No reply is expected.- Parameters:
request
- The request.
-
sendAndReceive
protected java.lang.Object sendAndReceive(PxReqCV request) throws java.lang.reflect.InvocationTargetException
Sends a request to the proxy server and receives and processes a reply.- Parameters:
request
- The request.- Returns:
- The returned object, or null if none.
- Throws:
java.lang.reflect.InvocationTargetException
-
getSystemName
public java.lang.String getSystemName()
-
-