Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2002-2010 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springframework.integration.xml.selector;
Base class for XPath org.springframework.integration.core.MessageSelector implementations.

Author(s):
Jonas Partner
public abstract class AbstractXPathMessageSelector implements MessageSelector {

Parameters:
xPathExpression XPath expression as a String
	public AbstractXPathMessageSelector(String xPathExpression) {
		this. = XPathExpressionFactory.createXPathExpression(xPathExpression);
	}

Parameters:
xPathExpression XPath expression as a String
prefix namespace prefix
namespace namespace URI
	public AbstractXPathMessageSelector(String xPathExpressionString prefixString namespace) {
		Map<String,Stringnamespaces = new HashMap<StringString>();
		namespaces.put(prefixnamespace);
		this. = XPathExpressionFactory.createXPathExpression(xPathExpressionnamespaces);
	}

Parameters:
xPathExpression XPath expression as a String
namespaces Map of namespaces with prefixes as the Map keys
	public AbstractXPathMessageSelector(String xPathExpressionMap<StringStringnamespaces) {
		this. = XPathExpressionFactory.createXPathExpression(xPathExpressionnamespaces);
	}

Parameters:
xPathExpression XPath expression
	public AbstractXPathMessageSelector(XPathExpression xPathExpression) {
		this. = xPathExpression;
	}


Specify the converter used to convert payloads prior to XPath testing.
	public void setConverter(XmlPayloadConverter converter) {
		this. = converter;
	}
		return this.;
	}
	}
New to GrepCode? Check out our FAQ X