|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.actions.AbstractFileAction
public abstract class AbstractFileAction
Extend this class if you need to implement an action class intended to process one file at a time. See
FileCopier as an example.
This class are stateful.
| Constructor Summary | |
|---|---|
AbstractFileAction()
|
|
| Method Summary | |
|---|---|
protected abstract java.lang.Object |
process(java.io.File file)
Process the file message object. |
Message |
process(Message message)
Files processed by action classes need to be renamed during processing to disable other listeners (or other threads launched by the same listener that started this thread) to pick up the same file Once processing ends a suffix will be added to the name of the original file that has been processed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.soa.esb.actions.ActionProcessor |
|---|
getErrorNotification, getOkNotification |
| Constructor Detail |
|---|
public AbstractFileAction()
| Method Detail |
|---|
public final Message process(Message message)
throws ActionProcessingException
process in interface ActionProcessormessage - The message payload to be processed.
ActionProcessingException - Exception during payload processing.
protected abstract java.lang.Object process(java.io.File file)
throws ActionProcessingException
file - The file to be processed.
ActionProcessingException - Exception while processing file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||