Package io.micronaut.servlet.jetty
Class JettyConfiguration
java.lang.Object
io.micronaut.http.server.HttpServerConfiguration
io.micronaut.servlet.jetty.JettyConfiguration
- All Implemented Interfaces:
io.micronaut.http.context.ServerContextPathProvider
@ConfigurationProperties("jetty")
@Replaces(io.micronaut.http.server.HttpServerConfiguration.class)
public class JettyConfiguration
extends io.micronaut.http.server.HttpServerConfiguration
Configuration properties for Jetty.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Jetty access log configuration.static class
The default connection pool configuration.Nested classes/interfaces inherited from class io.micronaut.http.server.HttpServerConfiguration
io.micronaut.http.server.HttpServerConfiguration.CorsConfiguration, io.micronaut.http.server.HttpServerConfiguration.HostResolutionConfiguration, io.micronaut.http.server.HttpServerConfiguration.HttpLocaleResolutionConfigurationProperties, io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.eclipse.jetty.server.HttpConfiguration
Fields inherited from class io.micronaut.http.server.HttpServerConfiguration
DEFAULT_DATEHEADER, DEFAULT_DISPATCH_OPTIONS_REQUESTS, DEFAULT_DUAL_PROTOCOL, DEFAULT_HTTP_TO_HTTPS_REDIRECT, DEFAULT_IDLE_TIME_MINUTES, DEFAULT_LOG_HANDLED_EXCEPTIONS, DEFAULT_MAX_REQUEST_BUFFER_SIZE, DEFAULT_MAX_REQUEST_SIZE, DEFAULT_PORT, DEFAULT_RANDOM_PORT, DEFAULT_READ_IDLE_TIME_MINUTES, DEFAULT_WRITE_IDLE_TIME_MINUTES, PREFIX
-
Constructor Summary
ConstructorDescriptionJettyConfiguration
(@Nullable io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration) Default constructor.JettyConfiguration
(@Nullable io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration, @Nullable JettyConfiguration.JettyRequestLog requestLog) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.server.HttpConfiguration
Optional<io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration>
void
setInitParameters
(Map<String, String> initParameters) Sets the servlet init parameters.Methods inherited from class io.micronaut.http.server.HttpServerConfiguration
getApplicationConfiguration, getClientAddressHeader, getContextPath, getCors, getDefaultCharset, getHost, getHostResolution, getHttpVersion, getIdleTimeout, getLocaleResolution, getMaxRequestBufferSize, getMaxRequestSize, getMultipart, getPort, getReadIdleTimeout, getReadTimeout, getServerHeader, getThreadSelection, getWriteIdleTimeout, isDateHeader, isDispatchOptionsRequests, isDualProtocol, isHttpToHttpsRedirect, isLogHandledExceptions, isNotFoundOnMissingBody, isValidateUrl, setClientAddressHeader, setContextPath, setCors, setDateHeader, setDefaultCharset, setDispatchOptionsRequests, setDualProtocol, setHost, setHostResolution, setHttpToHttpsRedirect, setHttpVersion, setIdleTimeout, setLocaleResolution, setLogHandledExceptions, setMaxRequestBufferSize, setMaxRequestSize, setMultipart, setNotFoundOnMissingBody, setPort, setReadIdleTimeout, setReadTimeout, setServerHeader, setThreadSelection, setValidateUrl, setWriteIdleTimeout
-
Field Details
-
httpConfiguration
@ConfigurationBuilder protected org.eclipse.jetty.server.HttpConfiguration httpConfiguration
-
-
Constructor Details
-
JettyConfiguration
public JettyConfiguration(@Nullable @Nullable io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration) Default constructor.- Parameters:
multipartConfiguration
- The multipart configuration.
-
JettyConfiguration
@Inject public JettyConfiguration(@Nullable @Nullable io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration, @Nullable @Nullable JettyConfiguration.JettyRequestLog requestLog) Default constructor.- Parameters:
multipartConfiguration
- The multipart configuration.
-
-
Method Details
-
getHttpConfiguration
public org.eclipse.jetty.server.HttpConfiguration getHttpConfiguration()- Returns:
- The HTTP configuration instance
-
getMultipartConfiguration
public Optional<io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration> getMultipartConfiguration()- Returns:
- The multipart configuration
-
getRequestLog
- Returns:
- The request log configuration.
-
getInitParameters
- Returns:
- The servlet init parameters
-
setInitParameters
public void setInitParameters(@MapFormat(transformation=FLAT,keyFormat=RAW) Map<String, String> initParameters) Sets the servlet init parameters.- Parameters:
initParameters
- The init parameters
-