|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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 ReceiverSingleInterfacesystem - The name of the system from which messages shall be
received.public java.lang.String getType()
ReceiverReceiver can receive data either as a
String or as an Object from a neighboring
system.Strings, getType
returns Constants.TYPE_TEXTObjects, getType
returns Constants.TYPE_OBJECT
getType in interface ReceiverConstants.TYPE_TEXTReceiver.getType()
public void open()
throws XException
open in interface TAResourceXException - 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 TAResourceXException - if something goes wrong
public void rollback()
throws XException
OnError, the file previously
read will either be renamed, deleted or will not be touched.
rollback in interface TAResourceXException - if something goes wrong
protected java.lang.String getRequestContent()
throws XException
XExceptionprotected java.lang.String getAddress()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||