|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.schedule.ScheduleAction
com.inet.report.schedule.FileAction
com.inet.report.schedule.FtpAction
public class FtpAction
The FtpAction is an enhancement of the FileAction
which allows the generated reports to be stored on a FTP server instead of
saving them to a local path of the server.
The FtpAction will therefore connect to a given server using the set port (by default port 21).
After this a log-in will be made with the set user name and password and
the directory on the ftp server will be changed to the set path. Then all files
of the generated reports will be uploaded to the FTP server.
| Field Summary |
|---|
| Fields inherited from class com.inet.report.schedule.ScheduleAction |
|---|
TYPE_CACHE, TYPE_CUSTOM, TYPE_EMAIL, TYPE_FILE, TYPE_FTP, TYPE_PRINT |
| Constructor Summary | |
|---|---|
FtpAction()
Creates an instance of FtpAction. |
|
| Method Summary | |
|---|---|
void |
action(ExecutedTask task)
This will render all report of the given task and save them to the ftp server directory configured. |
java.lang.String[] |
getErrorMessages()
Returns an array of error messages if available or an empty array if this FtpAction is valid. |
java.lang.String |
getPassword()
Returns the password which will be used to connect to the FTP server. |
int |
getPort()
Returns the port on which the FTP server is listening for FTP request. |
java.lang.String |
getServer()
Returns the name of the FTP server on which the reports should be stored. |
java.lang.String |
getUserName()
Returns the user name which will be used to connect to the FTP server. |
void |
setPassword(java.lang.String password)
Sets the password which will be used to connect to the FTP server. |
void |
setPort(int newPort)
Sets the port on which the FTP server is listening for FTP requests. |
void |
setServer(java.lang.String server)
Sets the name of the FTP server on which the reports should be stored. |
void |
setUserName(java.lang.String userName)
Sets the user name which should be used to connect to the FTP server. |
java.lang.String |
toString()
Returns a string representation of this FtpAction. |
| Methods inherited from class com.inet.report.schedule.FileAction |
|---|
getDateFormat, getPath, isAppendDate, isAppendTime, setAppendDate, setAppendTime, setDateFormat, setPath |
| Methods inherited from class com.inet.report.schedule.ScheduleAction |
|---|
getType, isValid |
| Constructor Detail |
|---|
public FtpAction()
| Method Detail |
|---|
public void action(ExecutedTask task)
action in class FileActiontask - The executed task including all reports which can be executed.public java.lang.String getPassword()
setPassword(String)public void setPassword(java.lang.String password)
password - The new password to be set.getPassword()public java.lang.String getServer()
setServer(String)public void setServer(java.lang.String server)
ftp.company.com or it can also be the IP address e.g.
192.122.200.1
server - The name of the FTP server which should be used.public java.lang.String getUserName()
null or an empty name can be returned.
public void setUserName(java.lang.String userName)
null or empty.
userName - The user name to be used to connect to the FTP server.public void setPort(int newPort)
newPort - The port which should be used.public int getPort()
public java.lang.String[] getErrorMessages()
getErrorMessages in class FileActionScheduleAction.isValid()public java.lang.String toString()
ScheduleAction.getErrorMessages() if available.
toString in class FileAction
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||