Class SmooksProcessor

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.smooks.SmooksProcessor
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Processor, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasCamelContext, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class SmooksProcessor extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.Processor, org.apache.camel.CamelContextAware
Smooks Processor for Camel.
  • Field Summary

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
  • Constructor Summary

    Constructors
    Constructor
    Description
    SmooksProcessor(String configUri, org.apache.camel.CamelContext camelContext)
     
    SmooksProcessor(org.apache.camel.CamelContext camelContext)
     
    SmooksProcessor(org.smooks.Smooks smooks, org.apache.camel.CamelContext camelContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addVisitor(org.smooks.api.delivery.VisitorAppender appender)
    Add a visitor instance to this Smooks instance via a VisitorAppender.
    addVisitor(org.smooks.api.resource.visitor.Visitor visitor, String targetSelector)
    Add a visitor instance.
    protected void
     
    protected void
     
     
    org.apache.camel.CamelContext
     
     
     
    org.smooks.SmooksFactory
     
    void
    process(org.apache.camel.Exchange exchange)
     
    void
    setAllowExecutionContextFromHeader(Boolean allowExecutionContextFromHeader)
     
    void
    setCamelContext(org.apache.camel.CamelContext camelContext)
     
    void
    setLazyStartProducer(Boolean lazyStartProducer)
     
    void
    setReportPath(String reportPath)
     
    protected void
    setResultOnBody(org.smooks.io.payload.Exports exports, org.smooks.api.io.Sink[] sinks, org.apache.camel.Exchange exchange)
     
    void
    setSmooksConfig(String smooksConfig)
     
    void
    setSmooksFactory(org.smooks.SmooksFactory smooksFactory)
     
     

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Constructor Details

    • SmooksProcessor

      public SmooksProcessor(org.apache.camel.CamelContext camelContext)
    • SmooksProcessor

      public SmooksProcessor(org.smooks.Smooks smooks, org.apache.camel.CamelContext camelContext)
    • SmooksProcessor

      public SmooksProcessor(String configUri, org.apache.camel.CamelContext camelContext) throws IOException, SAXException
      Throws:
      IOException
      SAXException
  • Method Details

    • setCamelContext

      public void setCamelContext(org.apache.camel.CamelContext camelContext)
      Specified by:
      setCamelContext in interface org.apache.camel.CamelContextAware
    • getCamelContext

      public org.apache.camel.CamelContext getCamelContext()
      Specified by:
      getCamelContext in interface org.apache.camel.spi.HasCamelContext
    • getAllowExecutionContextFromHeader

      public Boolean getAllowExecutionContextFromHeader()
    • setAllowExecutionContextFromHeader

      public void setAllowExecutionContextFromHeader(Boolean allowExecutionContextFromHeader)
    • process

      public void process(org.apache.camel.Exchange exchange)
      Specified by:
      process in interface org.apache.camel.Processor
    • setResultOnBody

      protected void setResultOnBody(org.smooks.io.payload.Exports exports, org.smooks.api.io.Sink[] sinks, org.apache.camel.Exchange exchange)
    • getSmooksConfig

      public String getSmooksConfig()
    • setSmooksConfig

      public void setSmooksConfig(String smooksConfig)
    • addVisitor

      public SmooksProcessor addVisitor(org.smooks.api.resource.visitor.Visitor visitor, String targetSelector)
      Add a visitor instance.
      Parameters:
      visitor - The visitor implementation.
      targetSelector - The message fragment target selector.
      Returns:
      This instance.
    • addVisitor

      public SmooksProcessor addVisitor(org.smooks.api.delivery.VisitorAppender appender)
      Add a visitor instance to this Smooks instance via a VisitorAppender.
      Parameters:
      appender - The visitor appender.
      Returns:
      This instance.
    • setReportPath

      public void setReportPath(String reportPath)
    • getSmooksFactory

      public org.smooks.SmooksFactory getSmooksFactory()
    • setSmooksFactory

      public void setSmooksFactory(org.smooks.SmooksFactory smooksFactory)
    • getLazyStartProducer

      public Boolean getLazyStartProducer()
    • setLazyStartProducer

      public void setLazyStartProducer(Boolean lazyStartProducer)
    • doStart

      protected void doStart()
      Overrides:
      doStart in class org.apache.camel.support.service.BaseService
    • doStop

      protected void doStop()
      Overrides:
      doStop in class org.apache.camel.support.service.BaseService
    • toString

      public String toString()
      Overrides:
      toString in class Object