public class XPathMessageSplitter extends AbstractMessageSplitter
XPathExpression
to split a
Document
, File
or String
payload into a NodeList
.
The return value will be either Strings or Node
s depending on the
received payload type. Additionally, node types will be converted to
Documents if the 'createDocuments' property is set to true
.AbstractReplyProducingMessageHandler.RequestHandler
logger
Constructor and Description |
---|
XPathMessageSplitter(java.lang.String expression) |
XPathMessageSplitter(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.String> namespaces) |
XPathMessageSplitter(org.springframework.xml.xpath.XPathExpression xpathExpression) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
void |
setCreateDocuments(boolean createDocuments) |
void |
setDocumentBuilder(javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory) |
void |
setXmlPayloadConverter(XmlPayloadConverter xmlPayloadConverter) |
protected java.lang.Object |
splitMessage(Message<?> message)
Subclasses must override this method to split the received Message.
|
handleRequestMessage, setApplySequence
doInit, doInvokeAdvisedRequestHandler, getMessagingTemplate, handleMessageInternal, hasAdviceChain, onInit, setAdviceChain, setBeanClassLoader, setChannelResolver, setOutputChannel, setRequiresReply, setSendTimeout, shouldCopyRequestHeaders
getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public XPathMessageSplitter(java.lang.String expression)
public XPathMessageSplitter(java.lang.String expression, java.util.Map<java.lang.String,java.lang.String> namespaces)
public XPathMessageSplitter(org.springframework.xml.xpath.XPathExpression xpathExpression)
public void setCreateDocuments(boolean createDocuments)
public java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class AbstractMessageSplitter
public void setDocumentBuilder(javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory)
public void setXmlPayloadConverter(XmlPayloadConverter xmlPayloadConverter)
protected java.lang.Object splitMessage(Message<?> message)
AbstractMessageSplitter
splitMessage
in class AbstractMessageSplitter