Package org.apache.camel.component.xj
Class JsonSourceHandlerFactoryImpl
java.lang.Object
org.apache.camel.component.xj.JsonSourceHandlerFactoryImpl
- All Implemented Interfaces:
org.apache.camel.component.xslt.SourceHandlerFactory
public class JsonSourceHandlerFactoryImpl
extends Object
implements org.apache.camel.component.xslt.SourceHandlerFactory
Handler for json sources
-
Constructor Summary
ConstructorsConstructorDescriptionJsonSourceHandlerFactoryImpl
(com.fasterxml.jackson.core.JsonFactory jsonFactory) Creates a new instance -
Method Summary
Modifier and TypeMethodDescriptiongetSource
(org.apache.camel.Exchange exchange) boolean
Returns if we fail when the body is nullvoid
setFailOnNullBody
(boolean failOnNullBody) Set if we should fail when the body is null
-
Constructor Details
-
JsonSourceHandlerFactoryImpl
public JsonSourceHandlerFactoryImpl(com.fasterxml.jackson.core.JsonFactory jsonFactory) Creates a new instance- Parameters:
jsonFactory
- the jsonFactory to use to read the json document
-
-
Method Details
-
isFailOnNullBody
public boolean isFailOnNullBody()Returns if we fail when the body is null -
setFailOnNullBody
public void setFailOnNullBody(boolean failOnNullBody) Set if we should fail when the body is null -
getSource
- Specified by:
getSource
in interfaceorg.apache.camel.component.xslt.SourceHandlerFactory
- Throws:
Exception
-