|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.technical.ftp.FTPSender
public class FTPSender
FTPSender sends data to neighbor systems by accessing a FTP
server and writing the data onto this server.
| Constructor Summary | |
|---|---|
FTPSender(XBUSSystem destination)
The constructor stores the destination, registers the FTPSender at the TAManager
and opens the connection to the FTP server. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the connection to the FTP server. |
void |
commit()
Renames the temporary file to the original file name. |
java.lang.String |
execute(java.lang.String function,
java.lang.String callData)
Writes the data to the FTP server. |
java.lang.String |
getType()
A Sender can send data either as a String
or as an Object to the neighboring system. |
void |
open()
Opens the connection to a FTP server, using the FTPConnection. |
void |
rollback()
Deletes the temporary file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FTPSender(XBUSSystem destination)
throws XException
FTPSender at the TAManager
and opens the connection to the FTP server.
destination - where the data shall be send to
XException - if something goes wrong| Method Detail |
|---|
public java.lang.String execute(java.lang.String function,
java.lang.String callData)
throws XException
commit().
execute in interface TextSenderfunction - ignoredcallData - data to be written
null
XException - if something goes wrong
public void open()
throws XException
FTPConnection.
open in interface TAResourceXException - if something goes wrongpublic void close()
close in interface TAResource
public void commit()
throws XException
ConflictResolution.
commit in interface TAResourceXException - if something goes wrong
public void rollback()
throws XException
rollback in interface TAResourceXException - if something goes wrongpublic java.lang.String getType()
SenderSender can send data either as a String
or as an Object to the neighboring system.Strings the Sender must fulfill two
preconditions:
getType returns Constants.TYPE_TEXTTextSenderObjects the Sender must also fulfill two
preconditions:
getType returns Constants.TYPE_OBJECTObjectSender
getType in interface SenderConstants.TYPE_TEXTSender.getType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||