com.sas.net.connect
Class TunneledConnectClient
java.lang.Object
|
+--com.sas.net.connect.ConnectClient
|
+--com.sas.net.connect.TunneledConnectClient
- public class TunneledConnectClient
- extends ConnectClient
This class represents a tunneled Connect client. It extends the basic
ConnectClient
class and adds functionality to start a SAS
session using the tunnel feature.
Method Summary |
void |
connect(String host)
Connects to the server using a default port of 23. |
void |
connect(String host,
int port)
Connects to the server. |
Methods inherited from class com.sas.net.connect.ConnectClient |
clearEditLines, clearListLines, clearLogLines, disconnect, getDownloadData, getDriverName, getEditLines, getListLineCount, getListLines, getListLines, getLogLineCount, getLogLines, getLogLines, getMajorSasVersion, getMinorSasVersion, getSharenet, getTextTransportFormat, isConnected, rcancel, rsubmit, setLogException |
TunneledConnectClient
public TunneledConnectClient(Properties info)
throws ConnectException
- Construct a TunneledConnectClient object.
This object accepts up to 5 prompts and responses between the remote connection daemon and the client.
- Parameters:
info
- A java.util.Properties object which contains the following:
- logException
- Throw an exception when error lines are detected in the log.
- routerUrl
- URL of redirection service, used for tunneling.
- prompt1
- The first prompt from the connection daemon at the server.
- response1
- The response from the user.
- prompt2
- The second prompt from the connection daemon at the server.
- response2
- The response from the user.
- prompt3
- The third prompt from the connection daemon at the server.
- response3
- The response from the user.
- prompt4
- The fourth prompt from the connection daemon at the server.
- response4
- The response from the user.
- prompt5
- The fifth prompt from the connection daemon at the server.
- response5
- The response from the user.
- userNameResponse
- The response property that contains the user name. This field
is always encrypted before it is sent to the server.
For example userNameResponse may be "response1".
- passwordResponse
- The response property that contains the password. This field
is always encrypted before it is send to the server. For example, passwordResponse
may be "response2".
- sasPortTag
- The tag in the message from SAS indicating
which port the server listens to.
- Throws:
ConnectException
- if the properties list is null.
connect
public void connect(String host,
int port)
throws ConnectException
- Connects to the server.
- Overrides:
connect
in class ConnectClient
- Parameters:
host
- The host name or address of the remote machine.port
- TCP/IP port number for the connection daemon.- Throws:
ConnectException
- if an exception is detected
connect
public void connect(String host)
throws ConnectException
- Connects to the server using a default port of 23.
- Parameters:
host
- The host name or address of the remote machine.- Throws:
ConnectException
- if an exception is detected.
Copyright © 2003 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 09 Jul 2004 16:13:36