Class ManagementHttpServer

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.component.platform.http.main.ManagementHttpServer
All Implemented Interfaces:
AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasCamelContext, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService

@ManagedResource(description="Camel Management Embedded HTTP server") public class ManagementHttpServer extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.CamelContextAware, org.apache.camel.StaticService
  • Constructor Details

    • ManagementHttpServer

      public ManagementHttpServer()
  • Method Details

    • getCamelContext

      public org.apache.camel.CamelContext getCamelContext()
      Specified by:
      getCamelContext in interface org.apache.camel.spi.HasCamelContext
    • setCamelContext

      public void setCamelContext(org.apache.camel.CamelContext camelContext)
      Specified by:
      setCamelContext in interface org.apache.camel.CamelContextAware
    • getConfiguration

      public org.apache.camel.component.platform.http.vertx.VertxPlatformHttpServerConfiguration getConfiguration()
    • setConfiguration

      public void setConfiguration(org.apache.camel.component.platform.http.vertx.VertxPlatformHttpServerConfiguration configuration)
    • isFileUploadEnabled

      @ManagedAttribute(description="Whether file uploads is enabled") public boolean isFileUploadEnabled()
    • setFileUploadEnabled

      public void setFileUploadEnabled(boolean fileUploadEnabled)
    • getFileUploadDirectory

      @ManagedAttribute(description="Directory to temporary store file uploads") public String getFileUploadDirectory()
    • setFileUploadDirectory

      public void setFileUploadDirectory(String fileUploadDirectory)
    • isInfoEnabled

      @ManagedAttribute(description="Whether info is enabled") public boolean isInfoEnabled()
    • setInfoEnabled

      public void setInfoEnabled(boolean infoEnabled)
    • isDevConsoleEnabled

      @ManagedAttribute(description="Whether dev console is enabled") public boolean isDevConsoleEnabled()
    • setDevConsoleEnabled

      public void setDevConsoleEnabled(boolean devConsoleEnabled)
      Whether developer web console is enabled (q/dev)
    • isHealthCheckEnabled

      @ManagedAttribute(description="Whether health check is enabled") public boolean isHealthCheckEnabled()
    • isJolokiaEnabled

      @ManagedAttribute(description="Whether Jolokia is enabled") public boolean isJolokiaEnabled()
    • setHealthCheckEnabled

      public void setHealthCheckEnabled(boolean healthCheckEnabled)
      Whether health-check is enabled (q/health)
    • setJolokiaEnabled

      public void setJolokiaEnabled(boolean jolokiaEnabledEnabled)
      Whether jolokia is enabled (q/jolokia)
    • getInfoPath

      @ManagedAttribute(description="The context-path for serving info status") public String getInfoPath()
    • setInfoPath

      public void setInfoPath(String infoPath)
    • getHealthPath

      @ManagedAttribute(description="The context-path for serving health check status") public String getHealthPath()
    • setHealthPath

      public void setHealthPath(String healthPath)
      The path endpoint used to expose the health status.
    • getJolokiaPath

      @ManagedAttribute(description="The context-path for serving Jolokia data") public String getJolokiaPath()
    • setJolokiaPath

      public void setJolokiaPath(String jolokiaPath)
      The path endpoint used to expose the Jolokia data.
    • isMetricsEnabled

      @ManagedAttribute(description="Whether metrics is enabled") public boolean isMetricsEnabled()
    • setMetricsEnabled

      public void setMetricsEnabled(boolean metricsEnabled)
      Whether metrics is enabled (observe/metrics)
    • getPort

      @ManagedAttribute(description="HTTP server port number") public int getPort()
    • setPort

      public void setPort(int port)
    • getHost

      @ManagedAttribute(description="HTTP server hostname") public String getHost()
    • setHost

      public void setHost(String host)
    • getPath

      @ManagedAttribute(description="HTTP server base path") public String getPath()
    • setPath

      public void setPath(String path)
    • getMaxBodySize

      @ManagedAttribute(description="HTTP server maximum body size") public Long getMaxBodySize()
    • setMaxBodySize

      public void setMaxBodySize(Long maxBodySize)
    • getSslContextParameters

      public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters()
    • setSslContextParameters

      public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
    • isUseGlobalSslContextParameters

      @ManagedAttribute(description="HTTP server using global SSL context parameters") public boolean isUseGlobalSslContextParameters()
    • setUseGlobalSslContextParameters

      public void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
    • isUploadEnabled

      @ManagedAttribute(description="Whether file upload is enabled (only for development) (q/upload)") public boolean isUploadEnabled()
    • setUploadEnabled

      public void setUploadEnabled(boolean uploadEnabled)
      Whether file upload is enabled (only for development) (q/upload)
    • getUploadSourceDir

      @ManagedAttribute(description="Directory for upload.") public String getUploadSourceDir()
    • setUploadSourceDir

      public void setUploadSourceDir(String uploadSourceDir)
      Directory for upload.
    • isDownloadEnabled

      @ManagedAttribute(description="Whether file download is enabled (q/download)") public boolean isDownloadEnabled()
    • setDownloadEnabled

      public void setDownloadEnabled(boolean downloadEnabled)
      Whether file download is enabled (q/download)
    • isSendEnabled

      @ManagedAttribute(description="Whether send message is enabled (q/send)") public boolean isSendEnabled()
    • setSendEnabled

      public void setSendEnabled(boolean sendEnabled)
      Whether to enable sending messages to Camel via HTTP. This makes it possible to use Camel to send messages to Camel endpoint URIs via HTTP.
    • getCors

      public org.apache.camel.component.platform.http.vertx.VertxPlatformHttpServerConfiguration.Cors getCors()
    • setCors

      public void setCors(org.apache.camel.component.platform.http.vertx.VertxPlatformHttpServerConfiguration.Cors corsConfiguration)
    • getBodyHandler

      public org.apache.camel.component.platform.http.vertx.VertxPlatformHttpServerConfiguration.BodyHandler getBodyHandler()
    • setBodyHandler

      public void setBodyHandler(org.apache.camel.component.platform.http.vertx.VertxPlatformHttpServerConfiguration.BodyHandler bodyHandler)
    • getRouter

      public org.apache.camel.component.platform.http.vertx.VertxPlatformHttpRouter getRouter()
    • doInit

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

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

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

      protected void setupConsoles()
    • setupInfo

      protected void setupInfo()
    • setupHealthCheckConsole

      protected void setupHealthCheckConsole()
    • setupJolokia

      protected void setupJolokia()
    • setupUploadConsole

      protected void setupUploadConsole(String dir)
    • setupDownloadConsole

      protected void setupDownloadConsole()
    • setupSendConsole

      protected void setupSendConsole()
    • resolvePlatformHttpPluginRegistry

      protected org.apache.camel.component.platform.http.spi.PlatformHttpPluginRegistry resolvePlatformHttpPluginRegistry()
    • setupDevConsole

      protected void setupDevConsole()
    • doSend

      protected void doSend(io.vertx.ext.web.RoutingContext ctx)
    • setupStartupSummary

      protected void setupStartupSummary() throws Exception
      Throws:
      Exception