Package org.apache.camel.main
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 Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()end()getHost()getPath()intgetPort()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAuthenticationEnabled(boolean authenticationEnabled) Whether to enable HTTP authentication for embedded server (for standalone applications; not Spring Boot or Quarkus).voidsetAuthenticationPath(String authenticationPath) Set HTTP url path of embedded server that is protected by authentication configuration.voidsetBasicPropertiesFile(String basicPropertiesFile) Name of the file that contains basic authentication info for Vert.x file auth provider.voidsetDevConsoleEnabled(boolean devConsoleEnabled) Whether to enable developer console (not intended for production use).voidsetDownloadEnabled(boolean downloadEnabled) Whether to enable file download via HTTP.voidsetEnabled(boolean enabled) Whether embedded HTTP server is enabled.voidsetHealthCheckEnabled(boolean healthCheckEnabled) Whether to enable health-check console.voidsetHealthPath(String healthPath) The path endpoint used to expose the health statusvoidHostname to use for binding embedded HTTP servervoidsetInfoEnabled(boolean infoEnabled) Whether to enable info console.voidsetInfoPath(String infoPath) The path endpoint used to expose the info statusvoidsetJolokiaEnabled(boolean jolokiaEnabled) Whether to enable jolokia.voidsetJolokiaPath(String jolokiaPath) The path endpoint used to expose the jolokia data.voidsetJwtKeystorePassword(String jwtKeystorePassword) Password from the keystore used for JWT tokens validation.voidsetJwtKeystorePath(String jwtKeystorePath) Path to the keystore file used for JWT tokens validation.voidsetJwtKeystoreType(String jwtKeystoreType) Type of the keystore used for JWT tokens validation (jks, pkcs12, etc.).voidsetMetricsEnabled(boolean metricsEnabled) Whether to enable metrics.voidContext-path to use for embedded HTTP servervoidsetPort(int port) Port to use for binding embedded HTTP servervoidsetSendEnabled(boolean sendEnabled) Whether to enable sending messages to Camel via HTTP.voidsetUploadEnabled(boolean uploadEnabled) Whether to enable file upload via HTTP (not intended for production use).voidsetUploadSourceDir(String uploadSourceDir) Source directory when upload is enabled.voidsetUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) Whether to use global SSL configuration for securing the embedded HTTP server.withAuthenticationEnabled(boolean authenticationEnabled) Whether to enable HTTP authentication for embedded server (for standalone applications; not Spring Boot or Quarkus).withAuthenticationPath(String authenticationPath) Set HTTP url path of embedded management server that is protected by authentication configuration.withBasicPropertiesFile(String basicPropertiesFile) Name of the file that contains basic authentication info for Vert.x file auth provider.withDevConsoleEnabled(boolean devConsoleEnabled) Whether to enable developer console (not intended for production use).withDownloadEnabled(boolean downloadEnabled) Whether to enable file download via HTTP.withEnabled(boolean enabled) Whether embedded HTTP management server is enabled.withHealthCheckEnabled(boolean healthCheckEnabled) Whether to enable health-check console.withHealthPath(String healthPath) The path endpoint used to expose the health statusHostname to use for binding embedded HTTP management serverwithInfoEnabled(boolean infoEnabled) Whether to enable info console.withInfoPath(String infoPath) The path endpoint used to expose the info statuswithJolokiaEnabled(boolean jolokiaEnabled) Whether to enable jolokia.withJolokiaPath(String jolokiaPath) The path endpoint used to expose the jolokia data.withJwtKeystorePassword(String jwtKeystorePassword) Password from the keystore used for JWT tokens validation.withJwtKeystorePath(String jwtKeystorePath) Path to the keystore file used for JWT tokens validation.withJwtKeystoreType(String jwtKeystoreType) Type of the keystore used for JWT tokens validation (jks, pkcs12, etc.).withMetricsEnabled(boolean metricsEnabled) Whether to enable metrics.Context-path to use for embedded HTTP management serverwithPort(int port) Port to use for binding embedded HTTP management serverwithSendEnabled(boolean sendEnabled) Whether to enable sending messages to Camel via HTTP.withUploadEnabled(boolean uploadEnabled) Whether to enable file upload via HTTP (not intended for production use).withUploadSourceDir(String uploadSourceDir) Source directory when upload is enabled.withUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) Whether to use global SSL configuration for securing the embedded HTTP management server.
-
Constructor Details
-
HttpManagementServerConfigurationProperties
-
-
Method Details
-
end
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) Whether embedded HTTP server is enabled. By default, the server is not enabled. -
getHost
-
setHost
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
-
setPath
Context-path to use for embedded HTTP server -
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 /observe/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: /observe/health -
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: /observe/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: /observe/metrics -
getInfoPath
-
setInfoPath
The path endpoint used to expose the info status -
getHealthPath
-
setHealthPath
The path endpoint used to expose the health status -
getJolokiaPath
-
setJolokiaPath
The path endpoint used to expose the jolokia data. -
isUploadEnabled
public boolean isUploadEnabled() -
setUploadEnabled
public void setUploadEnabled(boolean uploadEnabled) Whether to enable file upload via HTTP (not intended for production use). This functionality is for development to be able to reload Camel routes and code with source changes (if reload is enabled). If enabled then you can upload/delete files via HTTP PUT/DELETE on context-path: /q/upload/{name}. You must also configure the uploadSourceDir option. -
getUploadSourceDir
-
setUploadSourceDir
Source directory when upload is enabled. -
isDownloadEnabled
public boolean isDownloadEnabled() -
setDownloadEnabled
public void setDownloadEnabled(boolean downloadEnabled) Whether to enable file download via HTTP. This makes it possible to browse and download resource source files such as Camel XML or YAML routes. Only enable this for development, troubleshooting or special situations for management and monitoring. -
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
-
setAuthenticationPath
Set HTTP url path of embedded server that is protected by authentication configuration. -
getBasicPropertiesFile
-
setBasicPropertiesFile
Name of the file that contains basic authentication info for Vert.x file auth provider. -
getJwtKeystoreType
-
setJwtKeystoreType
Type of the keystore used for JWT tokens validation (jks, pkcs12, etc.). -
getJwtKeystorePath
-
setJwtKeystorePath
Path to the keystore file used for JWT tokens validation. -
getJwtKeystorePassword
-
setJwtKeystorePassword
Password from the keystore used for JWT tokens validation. -
withEnabled
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
Port to use for binding embedded HTTP management server -
withPath
Context-path to use for embedded HTTP management server -
withUseGlobalSslContextParameters
public HttpManagementServerConfigurationProperties withUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) Whether to use global SSL configuration for securing the embedded HTTP management server. -
withInfoEnabled
Whether to enable info console. If enabled then you can see some basic Camel information at /observe/info -
withDevConsoleEnabled
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
Whether to enable jolokia. If enabled then you can access jolokia api on context-path: /observe/jolokia -
withMetricsEnabled
Whether to enable metrics. If enabled then you can access metrics on context-path: /observe/metrics (default) -
withUploadEnabled
Whether to enable file upload via HTTP (not intended for production use). This functionality is for development to be able to reload Camel routes and code with source changes (if reload is enabled). If enabled then you can upload/delete files via HTTP PUT/DELETE on context-path: /q/upload/{name}. You must also configure the uploadSourceDir option. -
withUploadSourceDir
Source directory when upload is enabled. -
withDownloadEnabled
Whether to enable file download via HTTP. This makes it possible to browse and download resource source files such as Camel XML or YAML routes. Only enable this for development, troubleshooting or special situations for management and monitoring. -
withSendEnabled
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
Type of the keystore used for JWT tokens validation (jks, pkcs12, etc.). -
withJwtKeystorePath
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. -
withInfoPath
The path endpoint used to expose the info status -
withHealthPath
The path endpoint used to expose the health status -
withJolokiaPath
The path endpoint used to expose the jolokia data.
-