|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.notification.NotificationTarget org.jboss.soa.esb.notification.NotifyFTP
public class NotifyFTP
Sends a message to an outgoing FTP server. The outgoing filename can have values of message properties injected into it to make it unique. The notification-details property looks something like:
<NotificationList type="OK" xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"> <target class="NotifyFTP"> <ftp URL="ftp://username:pwd@server.com/remote/dir" filename="{jbossesb.message.id}.txt"/> </target> </NotificationList>
Field Summary | |
---|---|
static java.lang.String |
ATTR_FILENAME
Filename attribute |
static java.lang.String |
CHILD_FTP
FTP child tag name |
static java.lang.String |
TEMP_FILE_BASE
Base filename for temp file |
Fields inherited from class org.jboss.soa.esb.notification.NotificationTarget |
---|
m_oParms, PRM_NOTIF_CLASS |
Constructor Summary | |
---|---|
NotifyFTP(ConfigTree config)
Create an outgoing FTP notification based on the given configuration. |
Method Summary | |
---|---|
protected java.lang.String |
getFileName(Message message)
Lazy loads filename from config tree. |
protected java.io.File |
getFileToSend(Message message)
|
protected ConfigTree |
getFtpConfig()
Get the ConfigTree for the 'ftp' element. |
protected FTPEpr |
getFtpEpr()
Builds an FTP EPR from the configuration data. |
void |
sendNotification(Message message)
Derived classes must implement this method to do what has to be done to trigger that specific type of notification event |
Methods inherited from class org.jboss.soa.esb.notification.NotificationTarget |
---|
fromParams |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CHILD_FTP
public static final java.lang.String ATTR_FILENAME
public static final java.lang.String TEMP_FILE_BASE
Constructor Detail |
---|
public NotifyFTP(ConfigTree config)
config
- Method Detail |
---|
protected ConfigTree getFtpConfig() throws NotificationException
NotificationException
protected java.lang.String getFileName(Message message) throws NotificationException
NotificationException
protected FTPEpr getFtpEpr() throws NotificationException
NotificationException
public void sendNotification(Message message) throws NotificationException
NotificationTarget
sendNotification
in class NotificationTarget
message
- Object - The toString() method of this object will be the
actual notification content
NotificationException
- -
invoke Exception.getMessage() at runtime for this objectConfigTree
protected java.io.File getFileToSend(Message message) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |