public class MailBodyPattern extends StringXPathPattern implements Pattern
An expression representing the mail subject, based on String
containing placeholders using
XPathExpression
.
Constructor and Description |
---|
MailBodyPattern(QName wsdlOperationName,
String bodyValue)
Create a
MailBodyPattern from a String containing no placeholders with XPath expression, as a
constant. |
MailBodyPattern(QName wsdlOperationName,
String bodyPatternWithXPathExpr,
XPath xpathBuilder)
Create a
MailBodyPattern from a String containing placeholders with XPath expression. |
public MailBodyPattern(QName wsdlOperationName, String bodyPatternWithXPathExpr, XPath xpathBuilder) throws StringPlaceholderMappingExpressionException
MailBodyPattern
from a String
containing placeholders with XPath expression.wsdlOperationName
- The operation name in WSDL where this StringXPathPattern
takes placebodyPatternWithXPathExpr
- The String
pattern with its XPath placeholdersxpathBuilder
- The XPath expression builderStringPlaceholderMappingExpressionException
- An XPath expression in a placeholder is invalidpublic MailBodyPattern(QName wsdlOperationName, String bodyValue)
MailBodyPattern
from a String
containing no placeholders with XPath expression, as a
constant.wsdlOperationName
- The operation name in WSDL where this StringXPathPattern
takes placebodyValue
- The String
pattern as a constant (without XPath placeholder)public String getValue(Document incomingPayload) throws NoMailBodyPartValueException, OperationProcessingException
getValue
in interface Pattern
getValue
in class StringXPathPattern
String
with XPath expression placeholders replaced with their valuesNoStringPlaceholderValueException
- A String
placeholder is missing or empty in the incoming payloadOperationProcessingException
- An error occurs processing an XPath expressionNoMailBodyPartValueException
Copyright © 2005-2018 Linagora. All Rights Reserved.