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