org.mule.transport.file
Class SimpleFilenameParser
java.lang.Object
org.mule.transport.file.SimpleFilenameParser
- All Implemented Interfaces:
- FilenameParser
public class SimpleFilenameParser
- extends Object
- implements FilenameParser
SimpleFilenameParser
understands a limited set of tokens, namely
- ${DATE} : the currrent date in the format dd-MM-yy_HH-mm-ss.SS
- ${DATE:yy-MM-dd} : the current date using the specified format
- ${SYSTIME} : The current system time milliseconds
- ${UUID} : A generated Universally unique id
- ${ORIGINALNAME} : The origial file name if the file being written was read
from another location
- ${COUNT} : An incremental counter
- ${} : A name of a property on the message
Note that square brackets can be used instead of curl brackets, this is useful
when defining the file output pattern in a Mule Url endpointUri where the curl
bracket is an invalid character.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_DATE_FORMAT
public static final String DEFAULT_DATE_FORMAT
- See Also:
- Constant Field Values
SimpleFilenameParser
public SimpleFilenameParser()
getFilename
public String getFilename(MessageAdapter adapter,
String pattern)
- Specified by:
getFilename
in interface FilenameParser
getFilename
protected String getFilename(MessageAdapter adapter,
String pattern,
TemplateParser parser)
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.