|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.actions.converters.ObjectToCSVString
public class ObjectToCSVString
Object to CSV String processor.
Returns a CSV string based on the supplied message object and a comma-separated "bean-properties" action property that specifies a list of bean property names. Sample Action Configuration:
<Action name="Customer-To-CSV" processor="ObjectToCSVString">
<property name="bean-properties" value="name,address1,address2,phone" />
<property name="fail-on-missing-property" value="true" /> <!-- (Optional) Default of false. -->
</Action>
TODO: Add support for arrays ala producing the contents of a CSV file.
| Field Summary | |
|---|---|
static java.lang.String |
BEAN_PROPERTIES_PROP
|
static java.lang.String |
FAIL_ON_MISSING_PROPERTY
|
| Constructor Summary | |
|---|---|
ObjectToCSVString(java.lang.String actionName,
java.util.List<KeyValuePair> properties)
Public constructor. |
|
| Method Summary | |
|---|---|
java.io.Serializable |
getErrorNotification(Message message)
Get the "Error" notification message for this processor. |
java.io.Serializable |
getOkNotification(Message message)
Get the "OK" notification message for this processor. |
Message |
process(Message message)
Perform the processing action on the message |
| 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 BEAN_PROPERTIES_PROP
public static final java.lang.String FAIL_ON_MISSING_PROPERTY
| Constructor Detail |
|---|
public ObjectToCSVString(java.lang.String actionName,
java.util.List<KeyValuePair> properties)
throws ConfigurationException
actionName - Action name.properties - Action Properties.
ConfigurationException - Action not properly configured.| Method Detail |
|---|
public Message process(Message message)
throws ActionProcessingException
ActionProcessor
process in interface ActionProcessormessage - The message to be processed.
ActionProcessingException - Exception during payload processing.public java.io.Serializable getOkNotification(Message message)
ActionProcessor
getOkNotification in interface ActionProcessormessage - The message Object.
public java.io.Serializable getErrorNotification(Message message)
ActionProcessor
getErrorNotification in interface ActionProcessormessage - The message Object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||