Package org.apache.camel.component.stub
Class StubComponent
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.DefaultComponent
-
- org.apache.camel.component.seda.SedaComponent
-
- org.apache.camel.component.vm.VmComponent
-
- org.apache.camel.component.stub.StubComponent
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Component,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@Component("stub") public class StubComponent extends org.apache.camel.component.vm.VmComponentThe Stub Component is for stubbing out endpoints while developing or testing. Allows you to easily stub out a middleware transport by prefixing the URI with "stub:" which is handy for testing out routes, or isolating bits of middleware.
-
-
Constructor Summary
Constructors Constructor Description StubComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StubEndpointcreateEndpoint(String endpointUri, org.apache.camel.Component component, BlockingQueue<org.apache.camel.Exchange> queue, int concurrentConsumers)protected StubEndpointcreateEndpoint(String endpointUri, org.apache.camel.Component component, org.apache.camel.component.seda.BlockingQueueFactory<org.apache.camel.Exchange> queueFactory, int concurrentConsumers)protected voidvalidateParameters(String uri, Map<String,Object> parameters, String optionPrefix)protected voidvalidateURI(String uri, String path, Map<String,Object> parameters)-
Methods inherited from class org.apache.camel.component.vm.VmComponent
createEndpoint, doStart, doStop, getQueueReference, getQueues
-
Methods inherited from class org.apache.camel.component.seda.SedaComponent
getConcurrentConsumers, getDefaultOfferTimeout, getDefaultPollTimeout, getDefaultQueueFactory, getOrCreateQueue, getQueueKey, getQueueSize, isDefaultBlockWhenFull, isDefaultDiscardWhenFull, registerQueue, setConcurrentConsumers, setDefaultBlockWhenFull, setDefaultDiscardWhenFull, setDefaultOfferTimeout, setDefaultPollTimeout, setDefaultQueueFactory, setQueueSize
-
Methods inherited from class org.apache.camel.support.DefaultComponent
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, 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, toString, wait, wait, wait
-
-
-
-
Method Detail
-
validateURI
protected void validateURI(String uri, String path, Map<String,Object> parameters)
- Overrides:
validateURIin classorg.apache.camel.support.DefaultComponent
-
validateParameters
protected void validateParameters(String uri, Map<String,Object> parameters, String optionPrefix)
- Overrides:
validateParametersin classorg.apache.camel.support.DefaultComponent
-
createEndpoint
protected StubEndpoint createEndpoint(String endpointUri, org.apache.camel.Component component, org.apache.camel.component.seda.BlockingQueueFactory<org.apache.camel.Exchange> queueFactory, int concurrentConsumers)
- Overrides:
createEndpointin classorg.apache.camel.component.vm.VmComponent
-
createEndpoint
protected StubEndpoint createEndpoint(String endpointUri, org.apache.camel.Component component, BlockingQueue<org.apache.camel.Exchange> queue, int concurrentConsumers)
- Overrides:
createEndpointin classorg.apache.camel.component.vm.VmComponent
-
-