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 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) throws Exception
      Specified by:
      getSource in interface org.apache.camel.component.xslt.SourceHandlerFactory
      Throws:
      Exception