org.apache.camel.component.stub
Class StubComponent
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.impl.UriEndpointComponent
org.apache.camel.component.seda.SedaComponent
org.apache.camel.component.vm.VmComponent
org.apache.camel.component.stub.StubComponent
- All Implemented Interfaces:
- CamelContextAware, Component, Service, ShutdownableService, StatefulService, SuspendableService
public class StubComponent
- extends VmComponent
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.
Methods inherited from class org.apache.camel.component.seda.SedaComponent |
getConcurrentConsumers, getDefaultQueueFactory, getOrCreateQueue, getOrCreateQueue, getOrCreateQueue, getQueueKey, getQueueSize, registerQueue, setConcurrentConsumers, setDefaultQueueFactory, setQueueSize |
Methods inherited from class org.apache.camel.impl.DefaultComponent |
afterConfiguration, createConfiguration, createEndpoint, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, useRawUri |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StubComponent
public StubComponent()
validateURI
protected void validateURI(String uri,
String path,
Map<String,Object> parameters)
- Description copied from class:
DefaultComponent
- Strategy for validation of the uri when creating the endpoint.
- Overrides:
validateURI
in class DefaultComponent
- Parameters:
uri
- the uripath
- the path - part after the schemeparameters
- the parameters, an empty map if no parameters given
validateParameters
protected void validateParameters(String uri,
Map<String,Object> parameters,
String optionPrefix)
- Description copied from class:
DefaultComponent
- Strategy for validation of parameters, that was not able to be resolved to any endpoint options.
- Overrides:
validateParameters
in class DefaultComponent
- Parameters:
uri
- the uriparameters
- the parameters, an empty map if no parameters givenoptionPrefix
- optional prefix to filter the parameters for validation. Use null for validate all.
Apache Camel