|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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:
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 ConfigTree |
getFtpConfig()
Get the ConfigTree for the 'ftp' element. |
protected FTPEpr |
getFtpEpr()
Builds an FTP EPR from the configutation data. |
protected java.lang.String |
replaceArgument(java.lang.String value,
Message message)
Look for arguments in the form '{prop.name}' and replace them with corresponding message properties. |
protected java.lang.String |
replaceArguments(java.lang.String value,
Message message)
Replaces any arguments in the form '{prop.name}' with corresponding message property values. |
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 java.lang.String replaceArguments(java.lang.String value, Message message)
value
- message
-
protected java.lang.String replaceArgument(java.lang.String value, Message message)
value
- message
-
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |