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 |
isAllowStax()
Returns true if Stax is allowed
|
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 |
setAllowStax(boolean allowStax)
Sets if a
StAXSource is allowed to read the document |
void |
setFailOnNullBody(boolean failOnNullBody)
Set if we should fail when the body is null
|
public boolean isFailOnNullBody()
public void setFailOnNullBody(boolean failOnNullBody)
failOnNullBody - public boolean isAllowStax()
public void setAllowStax(boolean allowStax)
StAXSource is allowed to read the documentallowStax - public Source getSource(org.apache.camel.Exchange exchange) throws Exception
Source 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