org.apache.servicemix.components.util
Class FileExtensionPropertyExpression
java.lang.Object
org.apache.servicemix.expression.PropertyExpression
org.apache.servicemix.components.util.FileExtensionPropertyExpression
- All Implemented Interfaces:
- Expression
public class FileExtensionPropertyExpression
- extends PropertyExpression
Expression that returns the 'org.apache.servicemix.file.name' property on the
message added by a file extensions. Existing file extensions are by default
removed
- Since:
- 3.2
- Author:
- Mayrbaeurl
Method Summary |
java.lang.Object |
evaluate(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
Evaluates the expression on the given exchange and message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileExtensionPropertyExpression
public FileExtensionPropertyExpression(java.lang.String fileExtension)
FileExtensionPropertyExpression
public FileExtensionPropertyExpression(java.lang.String extension,
boolean deleteExistingExtension)
evaluate
public java.lang.Object evaluate(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
throws javax.jbi.messaging.MessagingException
- Description copied from interface:
Expression
- Evaluates the expression on the given exchange and message.
- Specified by:
evaluate
in interface Expression
- Overrides:
evaluate
in class PropertyExpression
- Parameters:
exchange
- the message exchangemessage
- the message, typically an inbound message
- Returns:
- the value of the expression
- Throws:
javax.jbi.messaging.MessagingException
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.