@UriEndpoint(scheme="schematron", title="Schematron", syntax="schematron:path", producerOnly=true, label="validation") public class SchematronEndpoint extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
SchematronEndpoint() |
SchematronEndpoint(String endpointUri) |
SchematronEndpoint(String uri,
String path,
SchematronComponent component) |
Modifier and Type | Method and Description |
---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
String |
getPath() |
Templates |
getRules() |
boolean |
isAbort() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
setAbort(boolean abort)
Flag to abort the route and throw a schematron validation exception.
|
void |
setPath(String path)
The path to the schematron rules file.
|
void |
setRules(Templates rules)
To use the given schematron rules instead of loading from the path
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public SchematronEndpoint()
public SchematronEndpoint(String uri, String path, SchematronComponent component)
public SchematronEndpoint(String endpointUri)
public Producer createProducer() throws Exception
Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processorException
- can be thrownpublic boolean isSingleton()
IsSingleton
public String getPath()
public void setPath(String path)
public void setAbort(boolean abort)
public boolean isAbort()
public Templates getRules()
public void setRules(Templates rules)
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.doStart
in class DefaultEndpoint
Exception
ServiceSupport.doStop()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.