|
|||||||||
| 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.NotifyFiles
public class NotifyFiles
Write the notification contents into a list of files specified in the constructor time parameters.
Description: The constructor searches for all child elements of the DomElement argument having "file" as element name, that will be used to store (or append) the contents of the argument to the sendNotification(Object) method, to each and every one of the files contained in the list
Author: Heuristica - Buenos Aires - Argentina
| Field Summary | |
|---|---|
static java.lang.String |
ATT_APPEND
Attribute name of indicator to append to an existing file |
static java.lang.String |
ATT_URI
Attribute name that will be interpreted as the URI of the file to write to |
static java.lang.String |
CHILD_FILE
Mnemonic for the child element name that hold the files to write ("file") |
protected org.jboss.soa.esb.notification.NotifyFiles.NotificationFile[] |
m_oaOutF
The NotificationFile[] that holds the output file list. |
| Fields inherited from class org.jboss.soa.esb.notification.NotificationTarget |
|---|
m_oParms, PRM_NOTIF_CLASS |
| Constructor Summary | |
|---|---|
NotifyFiles(DomElement p_oP)
Instantiate a NotifyFiles object according to contents of <arg 1> |
|
| Method Summary | |
|---|---|
void |
sendNotification(java.io.Serializable p_o)
Writes the result of p_o into each one of the File objects contained in the m_oaOutF array |
protected void |
setFiles(DomElement[] p_oaP)
Sets the value of m_oaOutF[] and m_baAppend[] to contents of each element of the input argument |
| 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_FILE
public static final java.lang.String ATT_URI
public static final java.lang.String ATT_APPEND
Boolean.valueOf(String),
Constant Field Valuesprotected org.jboss.soa.esb.notification.NotifyFiles.NotificationFile[] m_oaOutF
| Constructor Detail |
|---|
public NotifyFiles(DomElement p_oP)
throws java.lang.Exception
p_oP - DomElement - Should contain a nonempty set of child elements
with elementName="file". Each child element must have a "URI"
attribute and optionally a "append" element
java.lang.Exception| Method Detail |
|---|
protected void setFiles(DomElement[] p_oaP)
throws java.lang.Exception
p_oaP - DomElement[] - Each entry must have a "URI" attribute, and can
have an optional "append" attribute
java.lang.Exception - -
invoke Exception.getMessage() at runtime for detailsDomElement.getAttr(String)public void sendNotification(java.io.Serializable p_o)
sendNotification in class NotificationTargetp_o - Object - This object's toString() results will be written to
(appended to) each one of the files in m_oaOutFsetFiles(DomElement[]),
m_oaOutF
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||