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, org.apache.camel.Expression source) booleanReturns if we fail when the body is nullvoidsetFailOnNullBody(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
public Source getSource(org.apache.camel.Exchange exchange, org.apache.camel.Expression source) throws Exception - Specified by:
getSourcein interfaceorg.apache.camel.component.xslt.SourceHandlerFactory- Throws:
Exception
-