@ConfigurationProperties(value="tomcat")
public class TomcatConfiguration
extends io.micronaut.http.server.HttpServerConfiguration
HttpServerConfiguration
and allows configuring Tomcat.io.micronaut.http.server.HttpServerConfiguration.CorsConfiguration, io.micronaut.http.server.HttpServerConfiguration.HostResolutionConfiguration, io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration
Modifier and Type | Field and Description |
---|---|
protected org.apache.catalina.connector.Connector |
tomcatConnector |
DEFAULT_DATEHEADER, DEFAULT_DUAL_PROTOCOL, DEFAULT_IDLE_TIME_MINUTES, DEFAULT_LOG_HANDLED_EXCEPTIONS, DEFAULT_MAX_REQUEST_SIZE, DEFAULT_PORT, DEFAULT_RANDOM_PORT, DEFAULT_READ_IDLE_TIME_MINUTES, DEFAULT_WRITE_IDLE_TIME_MINUTES, PREFIX
Constructor and Description |
---|
TomcatConfiguration(io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration,
java.lang.String protocol)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration> |
getMultipartConfiguration() |
java.lang.String |
getProtocol() |
org.apache.catalina.connector.Connector |
getTomcatConnector() |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes) |
void |
setProtocol(java.lang.String protocol) |
getApplicationConfiguration, getClientAddressHeader, getContextPath, getCors, getDefaultCharset, getHost, getHostResolution, getIdleTimeout, getMaxRequestSize, getMultipart, getPort, getReadIdleTimeout, getReadTimeout, getServerHeader, getThreadSelection, getWriteIdleTimeout, isDateHeader, isDualProtocol, isLogHandledExceptions, setClientAddressHeader, setContextPath, setCors, setDateHeader, setDefaultCharset, setDualProtocol, setHost, setHostResolution, setIdleTimeout, setLogHandledExceptions, setMaxRequestSize, setMultipart, setPort, setReadIdleTimeout, setReadTimeout, setServerHeader, setThreadSelection, setWriteIdleTimeout
@ConfigurationBuilder protected final org.apache.catalina.connector.Connector tomcatConnector
public TomcatConfiguration(@Nullable io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration, @Property(name="micronaut.server.tomcat.protocol") @Nullable java.lang.String protocol)
multipartConfiguration
- The multipart configprotocol
- The protocol to usepublic void setAttributes(@MapFormat(transformation=FLAT,keyFormat=RAW) java.util.Map<java.lang.String,java.lang.String> attributes)
attributes
- The connector attributespublic java.lang.String getProtocol()
public void setProtocol(@Nullable java.lang.String protocol)
protocol
- The protocol to use. Defaults to org.apache.coyote.http11.Http11NioProtocol.public org.apache.catalina.connector.Connector getTomcatConnector()
public java.util.Optional<io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration> getMultipartConfiguration()