public class XmlSourceHandlerFactoryImpl extends Object implements SourceHandlerFactory
| Constructor and Description |
|---|
XmlSourceHandlerFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
Source |
getSource(org.apache.camel.Exchange exchange)
Creates a specific
Source depending on the current message exchanged |
protected Source |
getSource(org.apache.camel.Exchange exchange,
Object body)
|
boolean |
isFailOnNullBody()
Returns true if we fail when the body is null.
|
protected boolean |
isInputStreamNeeded(org.apache.camel.Exchange exchange)
Checks whether we need an
InputStream to access the message body. |
void |
setFailOnNullBody(boolean failOnNullBody)
Set if we should fail when the body is null
|
public boolean isFailOnNullBody()
public void setFailOnNullBody(boolean failOnNullBody)
public Source getSource(org.apache.camel.Exchange exchange) throws Exception
SourceHandlerFactorySource depending on the current message exchangedgetSource in interface SourceHandlerFactoryexchange - the exchangeException - if the source couldn't be createdprotected boolean isInputStreamNeeded(org.apache.camel.Exchange exchange)
InputStream to access the message body.
Depending on the content in the message body, we may not need to convert to InputStream.exchange - the current exchangeInputStream beforehand converting to Source
afterwards.Apache Camel