public class MailHeaderPattern extends StringXPathPattern implements Pattern
An expression representing a mail header, based on String
containing placeholders using
XPathExpression
.
Constructor and Description |
---|
MailHeaderPattern(QName wsdlOperationName,
String headerValue)
Create a
MailHeaderPattern from a String containing no placeholders with XPath expression, as a
constant. |
MailHeaderPattern(QName wsdlOperationName,
String headerPatternWithXPathExpr,
XPath xpathBuilder)
Create a
MailHeaderPattern from a String containing placeholders with XPath expression. |
public MailHeaderPattern(QName wsdlOperationName, String headerPatternWithXPathExpr, XPath xpathBuilder) throws StringPlaceholderMappingExpressionException
MailHeaderPattern
from a String
containing placeholders with XPath expression.wsdlOperationName
- The operation name in WSDL where this StringXPathPattern
takes placeheaderPatternWithXPathExpr
- The String
pattern with its XPath placeholdersxpathBuilder
- The XPath expression builderStringPlaceholderMappingExpressionException
- An XPath expression in a placeholder is invalidpublic MailHeaderPattern(QName wsdlOperationName, String headerValue)
MailHeaderPattern
from a String
containing no placeholders with XPath expression, as a
constant.wsdlOperationName
- The operation name in WSDL where this StringXPathPattern
takes placeheaderValue
- The String
pattern as a constant (without XPath placeholder)public String getValue(Document incomingPayload) throws NoMailHeaderPartValueException, 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 expressionNoMailHeaderPartValueException
Copyright © 2005-2018 Linagora. All Rights Reserved.