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
Nested ClassesModifier and TypeClassDescriptionstatic 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
FieldsModifier 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_SIZE, DEFAULT_PORT, DEFAULT_RANDOM_PORT, DEFAULT_READ_IDLE_TIME_MINUTES, DEFAULT_WRITE_IDLE_TIME_MINUTES, PREFIX
-
Constructor Summary
ConstructorsConstructorDescriptionJettyConfiguration
(@Nullable io.micronaut.http.server.HttpServerConfiguration.MultipartConfiguration multipartConfiguration) 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, getMaxRequestSize, getMultipart, getPort, getReadIdleTimeout, getReadTimeout, getServerHeader, getThreadSelection, getWriteIdleTimeout, isDateHeader, isDispatchOptionsRequests, isDualProtocol, isHttpToHttpsRedirect, isLogHandledExceptions, isValidateUrl, setClientAddressHeader, setContextPath, setCors, setDateHeader, setDefaultCharset, setDispatchOptionsRequests, setDualProtocol, setHost, setHostResolution, setHttpToHttpsRedirect, setHttpVersion, setIdleTimeout, setLocaleResolution, setLogHandledExceptions, setMaxRequestSize, setMultipart, 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.
-
-
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
-
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
-