Class XQueryEndpoint
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.xquery.XQueryEndpoint
- 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
@UriEndpoint(firstVersion="1.0.0",
scheme="xquery",
title="XQuery",
syntax="xquery:resourceUri",
remote=false,
category=TRANSFORMATION)
public class XQueryEndpoint
extends org.apache.camel.support.ProcessorEndpoint
Query and/or transform XML payloads using XQuery and Saxon.
-
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 voiddoInit()protected voidprotected voiddoStart()protected voiddoStop()net.sf.saxon.Configurationnet.sf.saxon.lib.ModuleURIResolverClass<?> net.sf.saxon.query.StaticQueryContextbooleanbooleanisRemote()booleanvoidsetAllowStAX(boolean allowStAX) Whether to allow using StAX modevoidsetConfiguration(net.sf.saxon.Configuration configuration) To use a custom Saxon configurationvoidsetConfigurationProperties(Map<String, Object> configurationProperties) To set custom Saxon configuration propertiesvoidsetModuleURIResolver(net.sf.saxon.lib.ModuleURIResolver moduleURIResolver) To use the customModuleURIResolvervoidsetNamespacePrefixes(Map<String, String> namespacePrefixes) Allows to control which namespace prefixes to use for a set of namespace mappingsvoidsetParameters(Map<String, Object> parameters) Additional parametersvoidsetProperties(Properties properties) Properties to configure the serialization parametersvoidsetResourceUri(String resourceUri) The name of the template to load from classpath or file systemvoidsetResultsFormat(ResultFormat resultsFormat) What output result to usevoidsetResultType(Class<?> resultType) What output result to use defined as a classvoidSource to use, instead of message body.voidsetStaticQueryContext(net.sf.saxon.query.StaticQueryContext staticQueryContext) To use a custom Saxon StaticQueryContextvoidsetStripsAllWhiteSpace(boolean stripsAllWhiteSpace) Whether to strip all whitespacesMethods inherited from class org.apache.camel.support.ProcessorEndpoint
createPollingConsumer, createProcessor, createProducer, getProcessor, onExchange, 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
-
XQueryEndpoint
-
-
Method Details
-
isRemote
public boolean isRemote() -
getResourceUri
-
setResourceUri
The name of the template to load from classpath or file system -
getConfiguration
public net.sf.saxon.Configuration getConfiguration() -
setConfiguration
public void setConfiguration(net.sf.saxon.Configuration configuration) To use a custom Saxon configuration -
getConfigurationProperties
-
setConfigurationProperties
To set custom Saxon configuration properties -
getStaticQueryContext
public net.sf.saxon.query.StaticQueryContext getStaticQueryContext() -
setStaticQueryContext
public void setStaticQueryContext(net.sf.saxon.query.StaticQueryContext staticQueryContext) To use a custom Saxon StaticQueryContext -
getParameters
-
setParameters
Additional parameters -
getNamespacePrefixes
-
setNamespacePrefixes
Allows to control which namespace prefixes to use for a set of namespace mappings -
getResultsFormat
-
setResultsFormat
What output result to use -
getProperties
-
setProperties
Properties to configure the serialization parameters -
getResultType
-
setResultType
What output result to use defined as a class -
isStripsAllWhiteSpace
public boolean isStripsAllWhiteSpace() -
setStripsAllWhiteSpace
public void setStripsAllWhiteSpace(boolean stripsAllWhiteSpace) Whether to strip all whitespaces -
getModuleURIResolver
public net.sf.saxon.lib.ModuleURIResolver getModuleURIResolver() -
setModuleURIResolver
public void setModuleURIResolver(net.sf.saxon.lib.ModuleURIResolver moduleURIResolver) To use the customModuleURIResolver -
isAllowStAX
public boolean isAllowStAX() -
setAllowStAX
public void setAllowStAX(boolean allowStAX) Whether to allow using StAX mode -
getSource
-
setSource
Source to use, instead of message body. You can prefix with variable:, header:, or property: to specify kind of source. Otherwise, the source is assumed to be a variable. Use empty or null to use default source, which is the message body. -
doInit
- Overrides:
doInitin classorg.apache.camel.support.DefaultEndpoint- Throws:
Exception
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doInitXQuery
- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-