public class StringXPathPattern extends Object implements Pattern
An expression representing a String
, based on String
containing placeholders using
XPathExpression
.
Constructor and Description |
---|
StringXPathPattern(QName wsdlOperationName,
String stringValue)
Create a
StringXPathPattern from a String containing no placeholders with XPath expression, as a
constant. |
StringXPathPattern(QName wsdlOperationName,
String stringPatternWithXPathExpr,
XPath xpathBuilder)
Create a
StringXPathPattern from a String containing placeholders with XPath expression. |
public StringXPathPattern(QName wsdlOperationName, String stringPatternWithXPathExpr, XPath xpathBuilder) throws StringPlaceholderMappingExpressionException
StringXPathPattern
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 StringXPathPattern(QName wsdlOperationName, String stringValue)
StringXPathPattern
from a String
containing no placeholders with XPath expression, as a
constant.wsdlOperationName
- The operation name in WSDL where this StringXPathPattern
takes placestringValue
- The String
pattern as a constant (without XPath placeholder).public String getValue(Document incomingPayload) throws NoStringPlaceholderValueException, OperationProcessingException
getValue
in interface Pattern
incomingPayload
- wsdlOperation
- 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 expressionNoStringPlaceholderValueException
- An empty value is returned by the XPath expressionCopyright © 2005-2018 Linagora. All Rights Reserved.