com.sas.net.connect
Class TunneledConnectClient

com.sas.net.connect.TunneledConnectClient

public class TunneledConnectClient

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.


Field Summary
 
Fields inherited from class com.sas.net.connect.ConnectClient
abort, clientFcb, connected, LINE_TYPE_BYLINE, LINE_TYPE_ERROR, LINE_TYPE_FOOTNOTE, LINE_TYPE_HILIGHTED, LINE_TYPE_MESSAGE, LINE_TYPE_NORMAL, LINE_TYPE_NOTE, LINE_TYPE_SOURCE, LINE_TYPE_TITLE, LINE_TYPE_WARNING
 
Constructor Summary
TunneledConnectClient(java.util.Properties info)
          Construct a TunneledConnectClient object.
 
Method Summary
 void connect(java.lang.String host)
          Connects to the server using a default port of 23.
 void connect(java.lang.String host, int port)
          Connects to the server.
 
Methods inherited from class com.sas.net.connect.ConnectClient
addEditLine, addExtension, addRecords, checkDownloadRecno, checkOptions, clearEditLines, clearListLines, clearLogLines, connect, createDownload, disconnect, drain, finalize, flush, getDownloadData, getDriverName, getEditLines, getListLineCount, getListLines, getListLines, getLogLineCount, getLogLines, getLogLines, getMajorSasVersion, getMinorSasVersion, getMver, getOptions, getRecords, getSharenet, getTextTransportFormat, isConnected, mergeOptions, rcancel, rsubmit, send, setLogException, setMver, setTextTransportFormat
 

Constructor Detail

TunneledConnectClient

public TunneledConnectClient(java.util.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.
Method Detail

connect

public void connect(java.lang.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(java.lang.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 © 2009 SAS Institute Inc. All Rights Reserved.