@Component(value="mock")
public class MockComponent
extends org.apache.camel.support.DefaultComponent
| Constructor and Description |
|---|
MockComponent() |
MockComponent(org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected void |
doInit() |
org.apache.camel.spi.ExchangeFormatter |
getExchangeFormatter() |
boolean |
isLog() |
void |
setExchangeFormatter(org.apache.camel.spi.ExchangeFormatter exchangeFormatter)
Sets a custom
ExchangeFormatter to convert the Exchange to a String suitable for logging. |
void |
setLog(boolean log)
To turn on logging when the mock receives an incoming message.
|
afterConfiguration, createEndpoint, createEndpoint, doBuild, doStart, doStop, 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, validateParameters, validateURIbuild, 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, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic MockComponent()
public MockComponent(org.apache.camel.CamelContext context)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionprotected void doInit()
throws Exception
doInit in class org.apache.camel.support.DefaultComponentExceptionpublic boolean isLog()
public void setLog(boolean log)
public org.apache.camel.spi.ExchangeFormatter getExchangeFormatter()
public void setExchangeFormatter(org.apache.camel.spi.ExchangeFormatter exchangeFormatter)
ExchangeFormatter to convert the Exchange to a String suitable for logging. If not
specified, we default to DefaultExchangeFormatter.Apache Camel