Class HttpManagementServerConfigurationProperties

java.lang.Object
org.apache.camel.main.HttpManagementServerConfigurationProperties
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.camel.spi.BootstrapCloseable

@Configurer(extended=true) public class HttpManagementServerConfigurationProperties extends Object implements org.apache.camel.spi.BootstrapCloseable
Configuration for embedded HTTP management server for standalone Camel applications (not Spring Boot / Quarkus).
  • Constructor Details

  • Method Details

    • end

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
      Whether embedded HTTP server is enabled. By default, the server is not enabled.
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
      Hostname to use for binding embedded HTTP server
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
      Port to use for binding embedded HTTP server
    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
      Context-path to use for embedded HTTP server
    • getMaxBodySize

      public Long getMaxBodySize()
    • setMaxBodySize

      public void setMaxBodySize(Long maxBodySize)
      Maximum HTTP body size the embedded HTTP server can accept.
    • isUseGlobalSslContextParameters

      public boolean isUseGlobalSslContextParameters()
    • setUseGlobalSslContextParameters

      public void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
      Whether to use global SSL configuration for securing the embedded HTTP server.
    • isInfoEnabled

      public boolean isInfoEnabled()
    • setInfoEnabled

      public void setInfoEnabled(boolean infoEnabled)
      Whether to enable info console. If enabled then you can see some basic Camel information at /q/info
    • isDevConsoleEnabled

      public boolean isDevConsoleEnabled()
    • setDevConsoleEnabled

      public void setDevConsoleEnabled(boolean devConsoleEnabled)
      Whether to enable developer console (not intended for production use). Dev console must also be enabled on CamelContext. For example by setting camel.context.dev-console=true in application.properties, or via code camelContext.setDevConsole(true); If enabled then you can access a basic developer console on context-path: /q/dev.
    • isHealthCheckEnabled

      public boolean isHealthCheckEnabled()
    • setHealthCheckEnabled

      public void setHealthCheckEnabled(boolean healthCheckEnabled)
      Whether to enable health-check console. If enabled then you can access health-check status on context-path: /q/health (default)
    • isJolokiaEnabled

      public boolean isJolokiaEnabled()
    • setJolokiaEnabled

      public void setJolokiaEnabled(boolean jolokiaEnabled)
      Whether to enable jolokia. If enabled then you can access jolokia api on context-path: /q/jolokia
    • isMetricsEnabled

      public boolean isMetricsEnabled()
    • setMetricsEnabled

      public void setMetricsEnabled(boolean metricsEnabled)
      Whether to enable metrics. If enabled then you can access metrics on context-path: /q/metrics (default)
    • getHealthPath

      public String getHealthPath()
    • setHealthPath

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

      public String getJolokiaPath()
    • setJolokiaPath

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

      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.
    • isAuthenticationEnabled

      public boolean isAuthenticationEnabled()
    • setAuthenticationEnabled

      public void setAuthenticationEnabled(boolean authenticationEnabled)
      Whether to enable HTTP authentication for embedded server (for standalone applications; not Spring Boot or Quarkus).
    • getAuthenticationPath

      public String getAuthenticationPath()
    • setAuthenticationPath

      public void setAuthenticationPath(String authenticationPath)
      Set HTTP url path of embedded server that is protected by authentication configuration.
    • getBasicPropertiesFile

      public String getBasicPropertiesFile()
    • setBasicPropertiesFile

      public void setBasicPropertiesFile(String basicPropertiesFile)
      Name of the file that contains basic authentication info for Vert.x file auth provider.
    • getJwtKeystoreType

      public String getJwtKeystoreType()
    • setJwtKeystoreType

      public void setJwtKeystoreType(String jwtKeystoreType)
      Type of the keystore used for JWT tokens validation (jks, pkcs12, etc.).
    • getJwtKeystorePath

      public String getJwtKeystorePath()
    • setJwtKeystorePath

      public void setJwtKeystorePath(String jwtKeystorePath)
      Path to the keystore file used for JWT tokens validation.
    • getJwtKeystorePassword

      public String getJwtKeystorePassword()
    • setJwtKeystorePassword

      public void setJwtKeystorePassword(String jwtKeystorePassword)
      Password from the keystore used for JWT tokens validation.
    • withEnabled

      public HttpManagementServerConfigurationProperties withEnabled(boolean enabled)
      Whether embedded HTTP management server is enabled. By default, the server is not enabled.
    • withHost

      Hostname to use for binding embedded HTTP management server
    • withPort

      public HttpManagementServerConfigurationProperties withPort(int port)
      Port to use for binding embedded HTTP management server
    • withPath

      Context-path to use for embedded HTTP management server
    • withMaxBodySize

      public HttpManagementServerConfigurationProperties withMaxBodySize(long maxBodySize)
      Maximum HTTP body size the embedded HTTP management server can accept.
    • withUseGlobalSslContextParameters

      public HttpManagementServerConfigurationProperties withUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
      Whether to use global SSL configuration for securing the embedded HTTP management server.
    • withInfoEnabled

      public HttpManagementServerConfigurationProperties withInfoEnabled(boolean infoEnabled)
      Whether to enable info console. If enabled then you can see some basic Camel information at /observe/info
    • withDevConsoleEnabled

      public HttpManagementServerConfigurationProperties withDevConsoleEnabled(boolean devConsoleEnabled)
      Whether to enable developer console (not intended for production use). Dev console must also be enabled on CamelContext. For example by setting camel.context.dev-console=true in application.properties, or via code camelContext.setDevConsole(true); If enabled then you can access a basic developer console on context-path: /observe/dev.
    • withHealthCheckEnabled

      public HttpManagementServerConfigurationProperties withHealthCheckEnabled(boolean healthCheckEnabled)
      Whether to enable health-check console. If enabled then you can access health-check status on context-path: /observe/health (default)
    • withJolokiaEnabled

      public HttpManagementServerConfigurationProperties withJolokiaEnabled(boolean jolokiaEnabled)
      Whether to enable jolokia. If enabled then you can access jolokia api on context-path: /observe/jolokia
    • withMetricsEnabled

      public HttpManagementServerConfigurationProperties withMetricsEnabled(boolean metricsEnabled)
      Whether to enable metrics. If enabled then you can access metrics on context-path: /observe/metrics (default)
    • withSendEnabled

      public HttpManagementServerConfigurationProperties withSendEnabled(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.
    • withAuthenticationEnabled

      public HttpManagementServerConfigurationProperties withAuthenticationEnabled(boolean authenticationEnabled)
      Whether to enable HTTP authentication for embedded server (for standalone applications; not Spring Boot or Quarkus).
    • withAuthenticationPath

      public HttpManagementServerConfigurationProperties withAuthenticationPath(String authenticationPath)
      Set HTTP url path of embedded management server that is protected by authentication configuration.
    • withBasicPropertiesFile

      public HttpManagementServerConfigurationProperties withBasicPropertiesFile(String basicPropertiesFile)
      Name of the file that contains basic authentication info for Vert.x file auth provider.
    • withJwtKeystoreType

      public HttpManagementServerConfigurationProperties withJwtKeystoreType(String jwtKeystoreType)
      Type of the keystore used for JWT tokens validation (jks, pkcs12, etc.).
    • withJwtKeystorePath

      public HttpManagementServerConfigurationProperties withJwtKeystorePath(String jwtKeystorePath)
      Path to the keystore file used for JWT tokens validation.
    • withJwtKeystorePassword

      public HttpManagementServerConfigurationProperties withJwtKeystorePassword(String jwtKeystorePassword)
      Password from the keystore used for JWT tokens validation.
    • withHealthPath

      public HttpManagementServerConfigurationProperties withHealthPath(String healthPath)
      The path endpoint used to expose the health status
    • withJolokiaPath

      public HttpManagementServerConfigurationProperties withJolokiaPath(String jolokiaPath)
      The path endpoint used to expose the jolokia data.