Package org.apache.camel.main
Class HttpServerConfigurationProperties
java.lang.Object
org.apache.camel.main.HttpServerConfigurationProperties
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.camel.spi.BootstrapCloseable
@Configurer(extended=true)
public class HttpServerConfigurationProperties
extends Object
implements org.apache.camel.spi.BootstrapCloseable
Configuration for embedded HTTP server for standalone Camel applications (not Spring Boot / Quarkus).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()end()getHost()getPath()intgetPort()booleanbooleanbooleanbooleanbooleanvoidsetAuthenticationEnabled(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.voidsetAuthenticationRealm(String authenticationRealm) Sets the authentication realmvoidsetBasicPropertiesFile(String basicPropertiesFile) Name of the file that contains basic authentication info for Vert.x file auth provider.voidsetEnabled(boolean enabled) Whether embedded HTTP server is enabled.voidsetFileUploadDirectory(String fileUploadDirectory) Directory to temporary store file uploads while Camel routes the incoming request.voidsetFileUploadEnabled(boolean fileUploadEnabled) Whether to enable file uploads being supported (such as POST multipart/form-data) and stored into a temporary directory.voidHostname to use for binding embedded HTTP servervoidsetJwtKeystorePassword(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.).voidsetMaxBodySize(Long maxBodySize) Maximum HTTP body size the embedded HTTP server can accept.voidContext-path to use for embedded HTTP servervoidsetPort(int port) Port to use for binding embedded HTTP servervoidsetStaticContextPath(String staticContextPath) The context-path to use for serving static content.voidsetStaticEnabled(boolean staticEnabled) Whether serving static files is enabled.voidsetStaticSourceDir(String staticSourceDir) Additional directory that holds static content when static 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 server that is protected by authentication configuration.withAuthenticationRealm(String authenticationRealm) Sets the authentication realmwithBasicPropertiesFile(String basicPropertiesFile) Name of the file that contains basic authentication info for Vert.x file auth provider.withEnabled(boolean enabled) Whether embedded HTTP server is enabled.withFileUploadDirectory(String fileUploadDirectory) Directory to temporary store file uploads while Camel routes the incoming request.withFileUploadEnabled(boolean fileUploadEnabled) Whether to enable file uploads being supported (such as POST multipart/form-data) and stored into a temporary directory.Hostname to use for binding embedded HTTP serverwithJwtKeystorePassword(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.).withMaxBodySize(long maxBodySize) Maximum HTTP body size the embedded HTTP server can accept.Context-path to use for embedded HTTP serverwithPort(int port) Port to use for binding embedded HTTP serverwithStaticContextPath(String staticContextPath) The context-path to use for serving static content.withStaticEnabled(boolean staticEnabled) Whether serving static files is enabled.withStaticSourceDir(String staticSourceDir) Additional directory that holds static content when static is enabled.withUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) Whether to use global SSL configuration for securing the embedded HTTP server.
-
Constructor Details
-
HttpServerConfigurationProperties
-
-
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 -
getMaxBodySize
-
setMaxBodySize
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. -
isFileUploadEnabled
public boolean isFileUploadEnabled() -
setFileUploadEnabled
public void setFileUploadEnabled(boolean fileUploadEnabled) Whether to enable file uploads being supported (such as POST multipart/form-data) and stored into a temporary directory. -
getFileUploadDirectory
-
setFileUploadDirectory
Directory to temporary store file uploads while Camel routes the incoming request. If no directory has been explicit configured, then a temporary directory is created in the java.io.tmpdir directory. -
isStaticEnabled
public boolean isStaticEnabled() -
setStaticEnabled
public void setStaticEnabled(boolean staticEnabled) Whether serving static files is enabled. If enabled then Camel can host html/js and other web files that makes it possible to include small web applications. -
getStaticSourceDir
-
setStaticSourceDir
Additional directory that holds static content when static is enabled. -
getStaticContextPath
-
setStaticContextPath
The context-path to use for serving static content. By default, the root path is used. And if there is an index.html page then this is automatically loaded. -
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. -
getAuthenticationRealm
-
setAuthenticationRealm
Sets the authentication realm -
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 server is enabled. By default, the server is not enabled. -
withHost
Hostname to use for binding embedded HTTP server -
withPort
Port to use for binding embedded HTTP server -
withPath
Context-path to use for embedded HTTP server -
withMaxBodySize
Maximum HTTP body size the embedded HTTP server can accept. -
withUseGlobalSslContextParameters
public HttpServerConfigurationProperties withUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) Whether to use global SSL configuration for securing the embedded HTTP server. -
withFileUploadEnabled
Whether to enable file uploads being supported (such as POST multipart/form-data) and stored into a temporary directory. -
withFileUploadDirectory
Directory to temporary store file uploads while Camel routes the incoming request. If no directory has been explicit configured, then a temporary directory is created in the java.io.tmpdir directory. -
withStaticEnabled
Whether serving static files is enabled. If enabled then Camel can host html/js and other web files that makes it possible to include small web applications. -
withStaticSourceDir
Additional directory that holds static content when static is enabled. -
withStaticContextPath
The context-path to use for serving static content. By default, the root path is used. And if there is an index.html page then this is automatically loaded. -
withAuthenticationEnabled
Whether to enable HTTP authentication for embedded server (for standalone applications; not Spring Boot or Quarkus). -
withAuthenticationPath
Set HTTP url path of embedded server that is protected by authentication configuration. -
withAuthenticationRealm
Sets the authentication realm -
withBasicPropertiesFile
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
Password from the keystore used for JWT tokens validation.
-