|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.actions.AbstractFileAction
org.jboss.soa.esb.actions.routing.FileCopier
public class FileCopier
File copy action.
Copy the file specified by the "fileParams" arg inprocess(File) to the location specified by the
action config properties.
Sample Action Configuration:
<Action name="Copy-To-XXX" processor="FileCopier">
<property name="copyToDirURI" value="file:///..." />
<property name="copyToSuffix" value=".fileCopierOutput" />
</Action>
| Constructor Summary | |
|---|---|
FileCopier(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. |
java.lang.Object |
process(java.io.File file)
Process the file message object. |
| Methods inherited from class org.jboss.soa.esb.actions.AbstractFileAction |
|---|
process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileCopier(java.lang.String actionName,
java.util.List<KeyValuePair> properties)
throws java.net.URISyntaxException
actionName - Action name.properties - Action Properties.
ConfigurationException - Action not properly configured.
java.net.URISyntaxException| Method Detail |
|---|
public java.lang.Object process(java.io.File file)
throws ActionProcessingException
AbstractFileAction
process in class AbstractFileActionfile - The file to be processed.
ActionProcessingException - Exception while processing file.public java.io.Serializable getOkNotification(Message message)
ActionProcessor
message - The message Object.
public java.io.Serializable getErrorNotification(Message message)
ActionProcessor
message - The message Object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||