Package org.apache.camel.support.console
Class AbstractDevConsole
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.console.AbstractDevConsole
- 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
public abstract class AbstractDevConsole
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.console.DevConsole, org.apache.camel.CamelContextAware
Base implementation for
DevConsole.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.console.DevConsole
org.apache.camel.console.DevConsole.MediaType -
Field Summary
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
ConstructorsConstructorDescriptionAbstractDevConsole(String group, String id, String displayName, String description) -
Method Summary
Modifier and TypeMethodDescriptiondoCallJson(Map<String, Object> options) Invokes and gets the output from this console in json format.protected abstract StringdoCallText(Map<String, Object> options) Invokes and gets the output from this console in text format.booleanorg.apache.camel.CamelContextgetGroup()getId()inthashCode()voidsetCamelContext(org.apache.camel.CamelContext camelContext) booleansupportMediaType(org.apache.camel.console.DevConsole.MediaType mediaType) Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doStop, 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
-
Constructor Details
-
AbstractDevConsole
-
-
Method Details
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
supportMediaType
public boolean supportMediaType(org.apache.camel.console.DevConsole.MediaType mediaType) - Specified by:
supportMediaTypein interfaceorg.apache.camel.console.DevConsole
-
getGroup
- Specified by:
getGroupin interfaceorg.apache.camel.console.DevConsole
-
getId
- Specified by:
getIdin interfaceorg.apache.camel.console.DevConsole
-
getDisplayName
- Specified by:
getDisplayNamein interfaceorg.apache.camel.console.DevConsole
-
getDescription
- Specified by:
getDescriptionin interfaceorg.apache.camel.console.DevConsole
-
equals
-
hashCode
public int hashCode() -
call
public Object call(org.apache.camel.console.DevConsole.MediaType mediaType, Map<String, Object> options) - Specified by:
callin interfaceorg.apache.camel.console.DevConsole
-
doCallJson
Invokes and gets the output from this console in json format. The returned object can for example be an org.apache.camel.util.json.JsonObject from camel-util-json to represent JSon data.- See Also:
-
doCallText
Invokes and gets the output from this console in text format.- See Also:
-