|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.management.config.xml.BaseElement
|
+--com.adventnet.management.config.xml.Device
|
+--com.adventnet.management.config.ftp.FTPDevice
This class holds the FTP specific properties like user name and password. Here user name and password are used for creating a authenticated ftp session to the ftp device for file transfer.
| Fields inherited from class com.adventnet.management.config.xml.BaseElement |
element, isServer |
| Constructor Summary | |
FTPDevice()
Constructs a FTPDevice with localhost as deviceName and 21 as ftp port. |
|
FTPDevice(Device device)
Constructs a FTPDevice from the specified Device's Element. |
|
FTPDevice(java.lang.String deviceName,
int port,
java.lang.String userName)
Constructs a FTPDevice with the specified device name, port and user name. |
|
FTPDevice(java.lang.String deviceName,
int port,
java.lang.String userName,
java.lang.String password)
Constructs a FTPDevice with the specified deviceName, port, userName and password. |
|
FTPDevice(java.lang.String deviceName,
java.lang.String userName)
Constructs a FTPDevice with the specified device name and user name. |
|
FTPDevice(java.lang.String deviceName,
java.lang.String userName,
java.lang.String password)
Constructs a FTPDevice with the specified device name, user name and password. |
|
| Method Summary | |
java.lang.String |
getAttribute(java.lang.String name)
Method used to get the value of an attribute. |
java.lang.String |
getPassword()
Returns the password of the user account. |
java.lang.String |
getUserName()
Returns the name of the user account. |
void |
setPassword(java.lang.String password)
Sets the password for the user account. |
void |
setUserName(java.lang.String userName)
Sets the name of the user account used in the ftp device. |
| Methods inherited from class com.adventnet.management.config.xml.Device |
getDeviceName, getMOName, getPort, getRetries, getTimeout, setMOName, setRetries, setTimeout |
| Methods inherited from class com.adventnet.management.config.xml.BaseElement |
addSubTag, getElement, getProperties, getSubTagsByName, hasAttribute, removeSubTagsByName, setAttribute, setProperties, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FTPDevice()
public FTPDevice(Device device)
device - Device object whose element is taken for initialization.
public FTPDevice(java.lang.String deviceName,
java.lang.String userName)
deviceName - name of the ftp device.userName - name of the user account specified in the ftp device.
public FTPDevice(java.lang.String deviceName,
int port,
java.lang.String userName)
deviceName - name of the ftp device.port - port number on which ftp device is listening.userName - name of the user account specified in the ftp device.
public FTPDevice(java.lang.String deviceName,
java.lang.String userName,
java.lang.String password)
deviceName - name of the ftp device.userName - name of the user account specified in the ftp device.password - password for the user account.
public FTPDevice(java.lang.String deviceName,
int port,
java.lang.String userName,
java.lang.String password)
deviceName - name of the ftp device.port - port number on which ftp device is listening.userName - name of the user account specified in the ftp device.password - password for the user account.| Method Detail |
public void setUserName(java.lang.String userName)
userName - name of the user account specified in the ftp device.public java.lang.String getUserName()
public void setPassword(java.lang.String password)
password - password for the user account.public java.lang.String getPassword()
public java.lang.String getAttribute(java.lang.String name)
BaseElementgetAttribute in class BaseElementcom.adventnet.management.config.xml.BaseElementname - name of the property whose value is requested.
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||