Package org.apache.camel.component.xj
Class XJEndpoint
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.support.ScheduledPollEndpoint
org.apache.camel.support.DefaultPollingEndpoint
org.apache.camel.support.ProcessorEndpoint
org.apache.camel.component.xslt.XsltEndpoint
org.apache.camel.component.xslt.saxon.XsltSaxonEndpoint
org.apache.camel.component.xj.XJEndpoint
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.ComponentAware,org.apache.camel.Endpoint,org.apache.camel.IsSingleton,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.HasId,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@ManagedResource(description="Managed XJEndpoint")
@UriEndpoint(firstVersion="3.0.0",
scheme="xj",
title="XJ",
syntax="xj:resourceUri",
producerOnly=true,
remote=false,
category=TRANSFORMATION,
headersClass=XJConstants.class)
public class XJEndpoint
extends org.apache.camel.component.xslt.saxon.XsltSaxonEndpoint
Transform JSON and XML message using a XSLT.
-
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureInput(org.apache.camel.component.xslt.XsltBuilder xsltBuilder) Configures the source input depending on thetransformDirectionprotected voidconfigureJsonOutput(org.apache.camel.component.xslt.XsltBuilder xsltBuilder, String output) Configures the result output when transforming to JSONprotected voidconfigureOutput(org.apache.camel.component.xslt.XsltBuilder xsltBuilder, String output) Configures the result output depending on thetransformDirectionprotected org.apache.camel.component.xslt.saxon.XsltSaxonBuilderprotected voiddoInit()booleanisRemote()voidsetTransformDirection(TransformDirection transformDirection) Sets the transform direction.Methods inherited from class org.apache.camel.component.xslt.saxon.XsltSaxonEndpoint
createBuilderForCustomStylesheet, doStart, getSaxonConfiguration, getSaxonConfigurationProperties, getSaxonExtensionFunctions, getSaxonReaderProperties, isAllowStAX, isSecureProcessing, isUseJsonBody, loadResource, setAllowStAX, setSaxonConfiguration, setSaxonConfigurationProperties, setSaxonExtensionFunctions, setSaxonExtensionFunctions, setSaxonReaderProperties, setSecureProcessing, setUseJsonBodyMethods inherited from class org.apache.camel.component.xslt.XsltEndpoint
clearCachedStylesheet, doStop, findOrCreateEndpoint, getEntityResolver, getErrorListener, getOutput, getParameters, getResourceUri, getResultHandlerFactory, getSource, getTransformerCacheSize, getTransformerFactory, getTransformerFactoryClass, getTransformerFactoryConfigurationStrategy, getUriResolver, getXslt, getXsltMessageLogger, isAllowTemplateFromHeader, isCacheCleared, isCacheStylesheet, isContentCache, isDeleteOutputFile, isFailOnNullBody, onExchange, setAllowTemplateFromHeader, setCacheCleared, setContentCache, setDeleteOutputFile, setEntityResolver, setErrorListener, setFailOnNullBody, setOutput, setParameters, setResourceUri, setResultHandlerFactory, setSource, setTransformerCacheSize, setTransformerFactory, setTransformerFactoryClass, setTransformerFactoryConfigurationStrategy, setUriResolver, setXslt, setXsltMessageLoggerMethods inherited from class org.apache.camel.support.ProcessorEndpoint
createPollingConsumer, createProcessor, createProducer, getProcessor, setProcessorMethods inherited from class org.apache.camel.support.DefaultPollingEndpoint
createConsumerMethods inherited from class org.apache.camel.support.ScheduledPollEndpoint
configureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayMethods inherited from class org.apache.camel.support.DefaultEndpoint
configureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, 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, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.ComponentAware
getComponentMethods inherited from interface org.apache.camel.Endpoint
getEndpointBaseUri, isSingletonProducerMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
XJEndpoint
-
-
Method Details
-
isRemote
public boolean isRemote()- Specified by:
isRemotein interfaceorg.apache.camel.Endpoint- Overrides:
isRemotein classorg.apache.camel.component.xslt.saxon.XsltSaxonEndpoint
-
getTransformDirection
@ManagedAttribute(description="Transform direction") public TransformDirection getTransformDirection() -
setTransformDirection
Sets the transform direction. -
doInit
- Overrides:
doInitin classorg.apache.camel.component.xslt.saxon.XsltSaxonEndpoint- Throws:
Exception
-
createXsltBuilder
protected org.apache.camel.component.xslt.saxon.XsltSaxonBuilder createXsltBuilder() throws Exception- Overrides:
createXsltBuilderin classorg.apache.camel.component.xslt.saxon.XsltSaxonEndpoint- Throws:
Exception
-
configureInput
protected void configureInput(org.apache.camel.component.xslt.XsltBuilder xsltBuilder) Configures the source input depending on thetransformDirection -
configureOutput
protected void configureOutput(org.apache.camel.component.xslt.XsltBuilder xsltBuilder, String output) throws Exception Configures the result output depending on thetransformDirection- Overrides:
configureOutputin classorg.apache.camel.component.xslt.XsltEndpoint- Throws:
Exception
-
configureJsonOutput
protected void configureJsonOutput(org.apache.camel.component.xslt.XsltBuilder xsltBuilder, String output) Configures the result output when transforming to JSON
-