|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindtree.techworks.insight.download.Fileset
com.mindtree.techworks.insight.download.SFTPFileset
public class SFTPFileset
This is a specialization of the Fileset
class to contain
information such as the host, port, etc., about a SFTPFileset.
Fileset
Field Summary | |
---|---|
static int |
SFTP_DEFAULT_PORT
The default SFTP Port (22) |
static java.lang.String |
SFTP_PROTOCOL
The name of the SFTP Protocol |
Fields inherited from class com.mindtree.techworks.insight.download.Fileset |
---|
FTP_FILESET, HTTP_FILESET, LOCAL_FILESET, SFTP_FILESET |
Constructor Summary | |
---|---|
SFTPFileset(java.lang.String filesetName)
Constructs a new FTPFileset object with just the name of the fileset. |
|
SFTPFileset(java.lang.String filesetName,
java.lang.String host,
int port,
java.lang.String defaultDirectory,
boolean isAuthenticationRequired,
java.lang.String userName,
java.lang.String password,
boolean isProxyRequired)
Constructs a new SFTPFileSet object with the parameters supplied. |
Method Summary | |
---|---|
java.lang.String |
getDefaultDirectory()
|
java.lang.String |
getHost()
|
java.net.URL |
getHostURL()
Returns the URL form of the host information |
java.lang.String |
getPassword()
|
java.net.PasswordAuthentication |
getPasswordAuthentication()
Returns the authentication information encapsulated in a PasswordAuthentication object. |
int |
getPort()
|
java.lang.String |
getUserName()
|
boolean |
isAuthenticationRequired()
|
boolean |
isProxyRequired()
|
void |
setAuthenticationRequired(boolean isAuthenticationRequired)
|
void |
setDefaultDirectory(java.lang.String defaultDirectory)
|
void |
setHost(java.lang.String host)
|
void |
setPassword(java.lang.String password)
|
void |
setPort(int port)
|
void |
setProxyRequired(boolean isProxyRequired)
|
void |
setUserName(java.lang.String userName)
|
Methods inherited from class com.mindtree.techworks.insight.download.Fileset |
---|
addFile, getFile, getFileCount, getFileList, getFilesetName, getType, getTypeString, iterateFiles, setFileList, setTypeString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SFTP_PROTOCOL
public static final int SFTP_DEFAULT_PORT
Constructor Detail |
---|
public SFTPFileset(java.lang.String filesetName)
filesetName
- The name of the fileset.public SFTPFileset(java.lang.String filesetName, java.lang.String host, int port, java.lang.String defaultDirectory, boolean isAuthenticationRequired, java.lang.String userName, java.lang.String password, boolean isProxyRequired)
filesetName
- The name of the fileset.host
- The host to connect toport
- The port to connect to. (Default: 22)defaultDirectory
- The default directory on the remote machine.isAuthenticationRequired
- If authentication is required.userName
- The username to usepassword
- The password for the usernameisProxyRequired
- If proxy is requiredMethod Detail |
---|
public java.lang.String getDefaultDirectory()
public void setDefaultDirectory(java.lang.String defaultDirectory)
defaultDirectory
- The defaultDirectory to set.public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- The host to set.public boolean isAuthenticationRequired()
public void setAuthenticationRequired(boolean isAuthenticationRequired)
isAuthenticationRequired
- The isAuthenticationRequired to set.public boolean isProxyRequired()
public void setProxyRequired(boolean isProxyRequired)
isProxyRequired
- The isProxyRequired to set.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- The password to set.public int getPort()
public void setPort(int port)
port
- The port to set.public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
userName
- The userName to set.public java.net.URL getHostURL() throws java.net.MalformedURLException
java.net.MalformedURLException
- If the URL cannot be formed.public java.net.PasswordAuthentication getPasswordAuthentication()
PasswordAuthentication
object. It returns null, if
authentication is not required or either userName or password are null.
PasswordAuthentication
object for the
userName
and password
supplied.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |