org.jboss.soa.esb.actions.naming.strategy
Class AddTimestampNamingStrategy

java.lang.Object
  extended by org.jboss.soa.esb.actions.naming.strategy.AbstractFileNamingStrategy
      extended by org.jboss.soa.esb.actions.naming.strategy.AddTimestampNamingStrategy
All Implemented Interfaces:
FileNamingStrategy

public class AddTimestampNamingStrategy
extends AbstractFileNamingStrategy

Naming strategy that appends a timestamp to the filename.

Author:
Derek Adams

Constructor Summary
AddTimestampNamingStrategy()
           
 
Method Summary
 void configure(org.w3c.dom.Node xml)
          Configure the strategy from its XML node.
 java.lang.String process(java.lang.String filename, Message message)
          Process the incoming filename and generate an outgoing filename.
 
Methods inherited from class org.jboss.soa.esb.actions.naming.strategy.AbstractFileNamingStrategy
getFilenameWithoutSuffix, getSuffix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddTimestampNamingStrategy

public AddTimestampNamingStrategy()
Method Detail

configure

public void configure(org.w3c.dom.Node xml)
Description copied from interface: FileNamingStrategy
Configure the strategy from its XML node.


process

public java.lang.String process(java.lang.String filename,
                                Message message)
Description copied from interface: FileNamingStrategy
Process the incoming filename and generate an outgoing filename.

Specified by:
process in interface FileNamingStrategy
Specified by:
process in class AbstractFileNamingStrategy
Returns:
String