|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xbus.technical.ftp.FTPReceiver
public class FTPReceiver
The class FTPReceiver
receives data by reading a file on a FTP
server.
Message
object and calls the application layer.
Field Summary | |
---|---|
protected FileReceiverConfiguration |
mConfiguration
|
Constructor Summary | |
---|---|
FTPReceiver()
|
Method Summary | |
---|---|
void |
close()
Closes the connection to the FTP server. |
void |
commit()
Depending on the parameter FinalResolution , the file
previously read will either be renamed, deleted or will not be touched. |
protected java.lang.String |
getAddress()
|
protected java.lang.String |
getRequestContent()
|
java.lang.String |
getType()
A Receiver can receive data either as a
String or as an Object from a neighboring
system. |
void |
open()
Opens the connection to the FTP server. |
void |
receive(java.lang.String system)
Reads data from files on a FTP server specified by the given system. |
void |
rollback()
Depending on the parameter OnError , the file previously
read will either be renamed, deleted or will not be touched. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FileReceiverConfiguration mConfiguration
Constructor Detail |
---|
public FTPReceiver()
Method Detail |
---|
public void receive(java.lang.String system)
receive
in interface ReceiverSingleInterface
system
- The name of the system from which messages shall be
received.public java.lang.String getType()
Receiver
Receiver
can receive data either as a
String
or as an Object
from a neighboring
system.Strings
, getType
returns Constants.TYPE_TEXT
Objects
, getType
returns Constants.TYPE_OBJECT
getType
in interface Receiver
Constants.TYPE_TEXT
Receiver.getType()
public void open() throws XException
open
in interface TAResource
XException
- if something goes wrongpublic void close()
close
in interface TAResource
public void commit() throws XException
FinalResolution
, the file
previously read will either be renamed, deleted or will not be touched.
commit
in interface TAResource
XException
- if something goes wrongpublic void rollback() throws XException
OnError
, the file previously
read will either be renamed, deleted or will not be touched.
rollback
in interface TAResource
XException
- if something goes wrongprotected java.lang.String getRequestContent() throws XException
XException
protected java.lang.String getAddress()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |