@UriEndpoint(firstVersion="1.3.0",
scheme="browse",
title="Browse",
syntax="browse:name",
category={CORE,MONITORING})
public class BrowseEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements org.apache.camel.spi.BrowsableEndpoint
BrowsableEndpoint.
This can be useful for testing, visualisation tools or debugging. The exchanges sent to the endpoint are all
available to be browsed.| Constructor and Description |
|---|
BrowseEndpoint() |
BrowseEndpoint(String uri,
org.apache.camel.Component component) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
protected List<org.apache.camel.Exchange> |
createExchangeList() |
org.apache.camel.Producer |
createProducer() |
protected void |
doInit() |
protected void |
doStop() |
List<org.apache.camel.Exchange> |
getExchanges() |
String |
getName() |
protected void |
onExchange(org.apache.camel.Exchange exchange)
Invoked on a message exchange being sent by a producer
|
void |
setName(String name) |
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doStart, 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, toStringbuild, doBuild, 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, finalize, getClass, notify, notifyAll, wait, wait, waitconfigureExchange, configureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, isLenientProperties, isSingletonProducer, setCamelContextpublic BrowseEndpoint()
public BrowseEndpoint(String uri, org.apache.camel.Component component)
public List<org.apache.camel.Exchange> getExchanges()
getExchanges in interface org.apache.camel.spi.BrowsableEndpointpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionpublic String getName()
public void setName(String name)
protected List<org.apache.camel.Exchange> createExchangeList()
protected void onExchange(org.apache.camel.Exchange exchange)
throws Exception
exchange - the exchangeException - is thrown if failed to process the exchangeprotected void doInit()
throws Exception
doInit in class org.apache.camel.support.DefaultEndpointExceptionApache Camel