@ConfigurationProperties(value="micronaut.servlet")
public class MicronautServletConfiguration
extends java.lang.Object
implements io.micronaut.core.naming.Named
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX
The prefix used for configuration.
|
Constructor and Description |
---|
MicronautServletConfiguration(java.lang.String name,
java.lang.String mapping,
io.micronaut.http.server.HttpServerConfiguration serverConfiguration)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMapping() |
java.util.Optional<javax.servlet.MultipartConfigElement> |
getMultipartConfigElement() |
java.lang.String |
getName() |
public static final java.lang.String PREFIX
@ConfigurationInject public MicronautServletConfiguration(@Bindable(defaultValue="micronaut") java.lang.String name, @Bindable(defaultValue="/*") java.lang.String mapping, io.micronaut.http.server.HttpServerConfiguration serverConfiguration)
name
- The name of the servletmapping
- The servlet mappingserverConfiguration
- The http server configurationpublic java.lang.String getMapping()
public java.util.Optional<javax.servlet.MultipartConfigElement> getMultipartConfigElement()
@NonNull public java.lang.String getName()
getName
in interface io.micronaut.core.naming.Named