Class SendDevConsole

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.SendDevConsole
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="send", displayName="Camel Send", description="Send messages to endpoints") @Configurer(extended=true) public class SendDevConsole 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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The message body to send.
    static final String
    Maximum size of the message body to include in the dump
    static final String
    Endpoint for where to send messages (can also refer to a route id, endpoint pattern).
    static final String
    Exchange pattern when sending
    static final String
    Whether to poll message from the endpoint instead of sending
    static final String
    Timeout when using poll mode

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING

    Fields inherited from interface org.apache.camel.console.DevConsole

    CONSOLE_GROUP, CONSOLE_ID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<String,Object>
     
    protected String
     
    protected void
     
    protected void
     
    int
     
    int
     
    void
    setBodyMaxChars(int bodyMaxChars)
     
    void
    setPollTimeout(int pollTimeout)
     

    Methods inherited from class org.apache.camel.support.console.AbstractDevConsole

    call, equals, getCamelContext, getDescription, getDisplayName, getGroup, getId, hashCode, setCamelContext, supportMediaType

    Methods 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, suspend

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.camel.console.DevConsole

    call

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Field Details

    • BODY_MAX_CHARS

      public static final String BODY_MAX_CHARS
      Maximum size of the message body to include in the dump
      See Also:
    • BODY

      public static final String BODY
      The message body to send. Can refer to files using file: prefix
      See Also:
    • POLL

      public static final String POLL
      Whether to poll message from the endpoint instead of sending
      See Also:
    • POLL_TIMEOUT

      public static final String POLL_TIMEOUT
      Timeout when using poll mode
      See Also:
    • EXCHANGE_PATTERN

      public static final String EXCHANGE_PATTERN
      Exchange pattern when sending
      See Also:
    • ENDPOINT

      public static final String ENDPOINT
      Endpoint for where to send messages (can also refer to a route id, endpoint pattern).
      See Also:
  • Constructor Details

    • SendDevConsole

      public SendDevConsole()
  • Method Details

    • doInit

      protected void doInit() throws Exception
      Overrides:
      doInit in class org.apache.camel.support.service.BaseService
      Throws:
      Exception
    • doStop

      protected void doStop() throws Exception
      Overrides:
      doStop in class org.apache.camel.support.service.BaseService
      Throws:
      Exception
    • getBodyMaxChars

      public int getBodyMaxChars()
    • setBodyMaxChars

      public void setBodyMaxChars(int bodyMaxChars)
    • getPollTimeout

      public int getPollTimeout()
    • setPollTimeout

      public void setPollTimeout(int pollTimeout)
    • doCallText

      protected String doCallText(Map<String,Object> options)
      Specified by:
      doCallText in class org.apache.camel.support.console.AbstractDevConsole
    • doCallJson

      protected Map<String,Object> doCallJson(Map<String,Object> options)
      Specified by:
      doCallJson in class org.apache.camel.support.console.AbstractDevConsole