Package io.quarkus.undertow.runtime
Class UndertowDeploymentRecorder
java.lang.Object
io.quarkus.undertow.runtime.UndertowDeploymentRecorder
Provides the runtime methods to bootstrap Undertow. This class is present in the final uber-jar,
and is invoked from generated bytecode
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final boolean(package private) final RuntimeValue<HttpConfiguration>static final io.undertow.server.HttpHandler -
Constructor Summary
ConstructorsConstructorDescriptionUndertowDeploymentRecorder(RuntimeValue<HttpConfiguration> httpConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContextParam(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String paramName, String paramValue) voidaddFilterInitParam(RuntimeValue<io.undertow.servlet.api.FilterInfo> info, String name, String value) voidaddFilterServletNameMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping, jakarta.servlet.DispatcherType dispatcherType) voidaddFilterURLMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping, jakarta.servlet.DispatcherType dispatcherType) static voidaddHotDeploymentWrapper(io.undertow.server.HandlerWrapper handlerWrapper) voidaddMimeMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String extension, String mimeType) voidaddSecurityConstraint(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.api.SecurityConstraint securityConstraint) voidaddSecurityConstraint(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.api.SecurityInfo.EmptyRoleSemantic emptyRoleSemantic, io.undertow.servlet.api.TransportGuaranteeType transportGuaranteeType, Set<String> rolesAllowed, Set<io.undertow.servlet.api.WebResourceCollection> webResourceCollections) voidaddSecurityRoleRef(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, String roleName, String roleLink) voidaddServletContainerInitializer(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, Class<? extends jakarta.servlet.ServletContainerInitializer> sciClass, Set<Class<?>> handlesTypes) voidaddServletContextAttribute(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String key, Object value1) voidaddServletExtension(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.ServletExtension extension) voidaddServletInitParam(RuntimeValue<io.undertow.servlet.api.ServletInfo> info, String name, String value) voidaddServletInitParameter(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String value) voidaddServletMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping) io.undertow.servlet.api.DeploymentManagerbootServletContainer(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, BeanContainer beanContainer, LaunchMode launchMode, ShutdownContext shutdownContext) RuntimeValue<io.undertow.servlet.api.DeploymentInfo>createDeployment(String name, Set<String> knownFile, Set<String> knownDirectories, LaunchMode launchMode, ShutdownContext context, String mountPoint, String defaultCharset, String requestCharacterEncoding, String responseCharacterEncoding, boolean proactiveAuth, List<String> welcomeFiles, boolean hasSecurityCapability) static SocketAddressRuntimeValue<io.undertow.servlet.api.FilterInfo>registerFilter(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, Class<?> filterClass, boolean asyncSupported, BeanContainer beanContainer, io.undertow.servlet.api.InstanceFactory<? extends jakarta.servlet.Filter> instanceFactory) voidregisterListener(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, Class<?> listenerClass, BeanContainer factory) RuntimeValue<io.undertow.servlet.api.ServletInfo>registerServlet(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deploymentInfo, String name, Class<?> servletClass, boolean asyncSupported, int loadOnStartup, BeanContainer beanContainer, io.undertow.servlet.api.InstanceFactory<? extends jakarta.servlet.Servlet> instanceFactory) Supplier<jakarta.servlet.ServletContext>io.undertow.servlet.api.ServletSessionConfigsessionConfig(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment) voidsetDenyUncoveredHttpMethods(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, boolean denyUncoveredHttpMethods) static voidsetHotDeploymentResources(List<Path> resources) voidsetMultipartConfig(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, String location, long fileSize, long maxRequestSize, int fileSizeThreshold) voidsetSecurityInfo(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, io.undertow.servlet.api.ServletSecurityInfo securityInfo) voidsetSessionCookieConfig(io.undertow.servlet.api.ServletSessionConfig config, String name, String path, String comment, String domain, Boolean httpOnly, Integer maxAge, Boolean secure) voidsetSessionTimeout(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, int sessionTimeout) voidsetSessionTracking(io.undertow.servlet.api.ServletSessionConfig config, Set<jakarta.servlet.SessionTrackingMode> modes) voidsetupRequestScope(io.undertow.servlet.api.DeploymentInfo deploymentInfo, BeanContainer beanContainer) voidsetupSecurity(io.undertow.servlet.api.DeploymentManager manager) io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>startUndertow(ShutdownContext shutdown, ExecutorService executorService, io.undertow.servlet.api.DeploymentManager manager, List<io.undertow.server.HandlerWrapper> wrappers, ServletRuntimeConfig servletRuntimeConfig, HttpBuildTimeConfig httpBuildTimeConfig)
-
Field Details
-
ROOT_HANDLER
public static final io.undertow.server.HttpHandler ROOT_HANDLER -
DEFAULT_BUFFER_SIZE
protected static final int DEFAULT_BUFFER_SIZE -
DEFAULT_DIRECT_BUFFERS
protected static final boolean DEFAULT_DIRECT_BUFFERS -
httpConfiguration
-
-
Constructor Details
-
UndertowDeploymentRecorder
-
-
Method Details
-
setHotDeploymentResources
-
createDeployment
public RuntimeValue<io.undertow.servlet.api.DeploymentInfo> createDeployment(String name, Set<String> knownFile, Set<String> knownDirectories, LaunchMode launchMode, ShutdownContext context, String mountPoint, String defaultCharset, String requestCharacterEncoding, String responseCharacterEncoding, boolean proactiveAuth, List<String> welcomeFiles, boolean hasSecurityCapability) -
getHttpAddress
-
registerServlet
public RuntimeValue<io.undertow.servlet.api.ServletInfo> registerServlet(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deploymentInfo, String name, Class<?> servletClass, boolean asyncSupported, int loadOnStartup, BeanContainer beanContainer, io.undertow.servlet.api.InstanceFactory<? extends jakarta.servlet.Servlet> instanceFactory) throws Exception - Throws:
Exception
-
addServletInitParam
public void addServletInitParam(RuntimeValue<io.undertow.servlet.api.ServletInfo> info, String name, String value) -
addServletMapping
public void addServletMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping) throws Exception - Throws:
Exception
-
setMultipartConfig
public void setMultipartConfig(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, String location, long fileSize, long maxRequestSize, int fileSizeThreshold) -
setSecurityInfo
public void setSecurityInfo(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, io.undertow.servlet.api.ServletSecurityInfo securityInfo) - Parameters:
sref-securityInfo-
-
addSecurityRoleRef
public void addSecurityRoleRef(RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, String roleName, String roleLink) - Parameters:
sref-roleName-roleLink-
-
registerFilter
public RuntimeValue<io.undertow.servlet.api.FilterInfo> registerFilter(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, Class<?> filterClass, boolean asyncSupported, BeanContainer beanContainer, io.undertow.servlet.api.InstanceFactory<? extends jakarta.servlet.Filter> instanceFactory) throws Exception - Throws:
Exception
-
addFilterInitParam
public void addFilterInitParam(RuntimeValue<io.undertow.servlet.api.FilterInfo> info, String name, String value) -
addFilterURLMapping
public void addFilterURLMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping, jakarta.servlet.DispatcherType dispatcherType) throws Exception - Throws:
Exception
-
addFilterServletNameMapping
public void addFilterServletNameMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping, jakarta.servlet.DispatcherType dispatcherType) throws Exception - Throws:
Exception
-
registerListener
public void registerListener(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, Class<?> listenerClass, BeanContainer factory) -
addMimeMapping
public void addMimeMapping(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String extension, String mimeType) throws Exception - Throws:
Exception
-
addServletInitParameter
public void addServletInitParameter(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String value) -
setupSecurity
public void setupSecurity(io.undertow.servlet.api.DeploymentManager manager) -
startUndertow
public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> startUndertow(ShutdownContext shutdown, ExecutorService executorService, io.undertow.servlet.api.DeploymentManager manager, List<io.undertow.server.HandlerWrapper> wrappers, ServletRuntimeConfig servletRuntimeConfig, HttpBuildTimeConfig httpBuildTimeConfig) throws Exception - Throws:
Exception
-
addHotDeploymentWrapper
public static void addHotDeploymentWrapper(io.undertow.server.HandlerWrapper handlerWrapper) -
servletContextSupplier
-
bootServletContainer
public io.undertow.servlet.api.DeploymentManager bootServletContainer(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, BeanContainer beanContainer, LaunchMode launchMode, ShutdownContext shutdownContext) -
addServletContextAttribute
public void addServletContextAttribute(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String key, Object value1) -
addServletExtension
public void addServletExtension(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.ServletExtension extension) -
setupRequestScope
public void setupRequestScope(io.undertow.servlet.api.DeploymentInfo deploymentInfo, BeanContainer beanContainer) -
addServletContainerInitializer
public void addServletContainerInitializer(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, Class<? extends jakarta.servlet.ServletContainerInitializer> sciClass, Set<Class<?>> handlesTypes) -
addContextParam
public void addContextParam(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String paramName, String paramValue) -
setDenyUncoveredHttpMethods
public void setDenyUncoveredHttpMethods(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, boolean denyUncoveredHttpMethods) -
addSecurityConstraint
public void addSecurityConstraint(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.api.SecurityConstraint securityConstraint) -
addSecurityConstraint
public void addSecurityConstraint(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.api.SecurityInfo.EmptyRoleSemantic emptyRoleSemantic, io.undertow.servlet.api.TransportGuaranteeType transportGuaranteeType, Set<String> rolesAllowed, Set<io.undertow.servlet.api.WebResourceCollection> webResourceCollections) -
setSessionTimeout
public void setSessionTimeout(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, int sessionTimeout) -
sessionConfig
public io.undertow.servlet.api.ServletSessionConfig sessionConfig(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment) -
setSessionTracking
public void setSessionTracking(io.undertow.servlet.api.ServletSessionConfig config, Set<jakarta.servlet.SessionTrackingMode> modes) -
setSessionCookieConfig
-