|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 wrongMethod Detail |
---|
public java.lang.String execute(java.lang.String function, java.lang.String callData) throws XException
commit()
.
execute
in interface TextSender
function
- ignoredcallData
- data to be written
null
XException
- if something goes wrongpublic void open() throws XException
FTPConnection
.
open
in interface TAResource
XException
- if something goes wrongpublic void close()
close
in interface TAResource
public void commit() throws XException
ConflictResolution
.
commit
in interface TAResource
XException
- if something goes wrongpublic void rollback() throws XException
rollback
in interface TAResource
XException
- if something goes wrongpublic java.lang.String getType()
Sender
Sender
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_TEXT
TextSender
Objects
the Sender must also fulfill two
preconditions:
getType
returns Constants.TYPE_OBJECT
ObjectSender
getType
in interface Sender
Constants.TYPE_TEXT
Sender.getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |