Package org.apache.camel.impl.console
Class ReceiveDevConsole
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.console.AbstractDevConsole
org.apache.camel.impl.console.ReceiveDevConsole
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.console.DevConsole,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasCamelContext,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@DevConsole(name="receive",
displayName="Camel Receive",
description="Consume messages from endpoints")
@Configurer(extended=true)
public class ReceiveDevConsole
extends org.apache.camel.support.console.AbstractDevConsole
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.console.DevConsole
org.apache.camel.console.DevConsole.MediaType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringWhether to dump received messagesstatic final StringWhether to enable or disable receive modestatic final StringEndpoint for where to receive messages (can also refer to a route id, endpoint pattern).Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDINGFields inherited from interface org.apache.camel.console.DevConsole
CONSOLE_GROUP, CONSOLE_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.camel.util.json.JsonObjectdoCallJson(Map<String, Object> options) protected StringdoCallText(Map<String, Object> options) protected voiddoInit()protected voiddoStop()protected static org.apache.camel.EndpointfindMatchingEndpoint(org.apache.camel.CamelContext camelContext, String endpoint) intintbooleanvoidsetBodyMaxChars(int bodyMaxChars) voidsetCapacity(int capacity) voidsetRemoveOnDump(boolean removeOnDump) protected voidMethods inherited from class org.apache.camel.support.console.AbstractDevConsole
call, equals, getCamelContext, getDescription, getDisplayName, getGroup, getId, hashCode, setCamelContext, supportMediaTypeMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.console.DevConsole
callMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
ENABLED
Whether to enable or disable receive mode- See Also:
-
DUMP
Whether to dump received messages- See Also:
-
ENDPOINT
Endpoint for where to receive messages (can also refer to a route id, endpoint pattern).- See Also:
-
-
Constructor Details
-
ReceiveDevConsole
public ReceiveDevConsole()
-
-
Method Details
-
getCapacity
public int getCapacity() -
setCapacity
public void setCapacity(int capacity) -
getBodyMaxChars
public int getBodyMaxChars() -
setBodyMaxChars
public void setBodyMaxChars(int bodyMaxChars) -
isRemoveOnDump
public boolean isRemoveOnDump() -
setRemoveOnDump
public void setRemoveOnDump(boolean removeOnDump) -
doInit
- Overrides:
doInitin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
stopConsumers
protected void stopConsumers() -
doCallText
- Specified by:
doCallTextin classorg.apache.camel.support.console.AbstractDevConsole
-
doCallJson
- Specified by:
doCallJsonin classorg.apache.camel.support.console.AbstractDevConsole
-
findMatchingEndpoint
protected static org.apache.camel.Endpoint findMatchingEndpoint(org.apache.camel.CamelContext camelContext, String endpoint)
-