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 booleanstatic final io.undertow.server.HttpHandler -
Constructor Summary
ConstructorsConstructorDescriptionUndertowDeploymentRecorder(io.quarkus.vertx.http.runtime.VertxHttpBuildTimeConfig httpBuildTimeConfig, io.quarkus.runtime.RuntimeValue<io.quarkus.vertx.http.runtime.VertxHttpConfig> httpRuntimeConfig, io.quarkus.runtime.RuntimeValue<ServletRuntimeConfig> servletRuntimeConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContextParam(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String paramName, String paramValue) voidaddErrorPage(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String location, int errorCode) voidaddErrorPage(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String location, Class<? extends Throwable> exceptionType) voidaddFilterInitParam(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.FilterInfo> info, String name, String value) voidaddFilterServletNameMapping(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping, jakarta.servlet.DispatcherType dispatcherType) voidaddFilterURLMapping(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping, jakarta.servlet.DispatcherType dispatcherType) static voidaddHotDeploymentWrapper(io.undertow.server.HandlerWrapper handlerWrapper) voidaddMimeMapping(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String extension, String mimeType) voidaddSecurityConstraint(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.api.SecurityConstraint securityConstraint) voidaddSecurityConstraint(io.quarkus.runtime.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(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, String roleName, String roleLink) voidaddServletContainerInitializer(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, Class<? extends jakarta.servlet.ServletContainerInitializer> sciClass, Set<Class<?>> handlesTypes) voidaddServletContextAttribute(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String key, Object value1) voidaddServletExtension(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.ServletExtension extension) voidaddServletInitParam(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.ServletInfo> info, String name, String value) voidaddServletInitParameter(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String value) voidaddServletMapping(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping) io.undertow.servlet.api.DeploymentManagerbootServletContainer(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, io.quarkus.arc.runtime.BeanContainer beanContainer, io.quarkus.runtime.LaunchMode launchMode, io.quarkus.runtime.ShutdownContext shutdownContext, boolean decorateStacktrace, String scrMainJava, List<String> knownClasses) io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> createDeployment(String name, Set<String> knownFiles, Set<String> knownDirectories, io.quarkus.runtime.LaunchMode launchMode, io.quarkus.runtime.ShutdownContext context, String mountPoint, String defaultCharset, String requestCharacterEncoding, String responseCharacterEncoding, boolean proactiveAuth, List<String> welcomeFiles, boolean hasSecurityCapability) static SocketAddressio.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.FilterInfo> registerFilter(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, Class<?> filterClass, boolean asyncSupported, io.quarkus.arc.runtime.BeanContainer beanContainer, io.undertow.servlet.api.InstanceFactory<? extends jakarta.servlet.Filter> instanceFactory) voidregisterListener(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, Class<?> listenerClass, io.quarkus.arc.runtime.BeanContainer factory) io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.ServletInfo> registerServlet(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deploymentInfo, String name, Class<?> servletClass, boolean asyncSupported, int loadOnStartup, io.quarkus.arc.runtime.BeanContainer beanContainer, io.undertow.servlet.api.InstanceFactory<? extends jakarta.servlet.Servlet> instanceFactory) Supplier<jakarta.servlet.ServletContext> io.undertow.servlet.api.ServletSessionConfigsessionConfig(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment) voidsetDenyUncoveredHttpMethods(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, boolean denyUncoveredHttpMethods) static voidsetHotDeploymentResources(List<Path> resources) voidsetMultipartConfig(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, String location, long fileSize, long maxRequestSize, int fileSizeThreshold) voidsetSecurityInfo(io.quarkus.runtime.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(io.quarkus.runtime.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, io.quarkus.arc.runtime.BeanContainer beanContainer) voidsetupSecurity(io.undertow.servlet.api.DeploymentManager manager) io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> startUndertow(io.quarkus.runtime.ShutdownContext shutdown, ExecutorService executorService, io.undertow.servlet.api.DeploymentManager manager, List<io.undertow.server.HandlerWrapper> wrappers)
-
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
-
-
Constructor Details
-
UndertowDeploymentRecorder
public UndertowDeploymentRecorder(io.quarkus.vertx.http.runtime.VertxHttpBuildTimeConfig httpBuildTimeConfig, io.quarkus.runtime.RuntimeValue<io.quarkus.vertx.http.runtime.VertxHttpConfig> httpRuntimeConfig, io.quarkus.runtime.RuntimeValue<ServletRuntimeConfig> servletRuntimeConfig)
-
-
Method Details
-
setHotDeploymentResources
-
createDeployment
public io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> createDeployment(String name, Set<String> knownFiles, Set<String> knownDirectories, io.quarkus.runtime.LaunchMode launchMode, io.quarkus.runtime.ShutdownContext context, String mountPoint, String defaultCharset, String requestCharacterEncoding, String responseCharacterEncoding, boolean proactiveAuth, List<String> welcomeFiles, boolean hasSecurityCapability) -
getHttpAddress
-
registerServlet
public io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.ServletInfo> registerServlet(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deploymentInfo, String name, Class<?> servletClass, boolean asyncSupported, int loadOnStartup, io.quarkus.arc.runtime.BeanContainer beanContainer, io.undertow.servlet.api.InstanceFactory<? extends jakarta.servlet.Servlet> instanceFactory) throws Exception - Throws:
Exception
-
addServletInitParam
-
addServletMapping
public void addServletMapping(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping) throws Exception - Throws:
Exception
-
setMultipartConfig
public void setMultipartConfig(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, String location, long fileSize, long maxRequestSize, int fileSizeThreshold) -
setSecurityInfo
public void setSecurityInfo(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, io.undertow.servlet.api.ServletSecurityInfo securityInfo) - Parameters:
sref-securityInfo-
-
addSecurityRoleRef
public void addSecurityRoleRef(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.ServletInfo> sref, String roleName, String roleLink) - Parameters:
sref-roleName-roleLink-
-
registerFilter
public io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.FilterInfo> registerFilter(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, Class<?> filterClass, boolean asyncSupported, io.quarkus.arc.runtime.BeanContainer beanContainer, io.undertow.servlet.api.InstanceFactory<? extends jakarta.servlet.Filter> instanceFactory) throws Exception - Throws:
Exception
-
addFilterInitParam
-
addFilterURLMapping
public void addFilterURLMapping(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping, jakarta.servlet.DispatcherType dispatcherType) throws Exception - Throws:
Exception
-
addFilterServletNameMapping
public void addFilterServletNameMapping(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String name, String mapping, jakarta.servlet.DispatcherType dispatcherType) throws Exception - Throws:
Exception
-
registerListener
public void registerListener(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, Class<?> listenerClass, io.quarkus.arc.runtime.BeanContainer factory) -
addMimeMapping
public void addMimeMapping(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, String extension, String mimeType) throws Exception - Throws:
Exception
-
addServletInitParameter
-
setupSecurity
public void setupSecurity(io.undertow.servlet.api.DeploymentManager manager) -
startUndertow
public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> startUndertow(io.quarkus.runtime.ShutdownContext shutdown, ExecutorService executorService, io.undertow.servlet.api.DeploymentManager manager, List<io.undertow.server.HandlerWrapper> wrappers) throws Exception - Throws:
Exception
-
addHotDeploymentWrapper
public static void addHotDeploymentWrapper(io.undertow.server.HandlerWrapper handlerWrapper) -
servletContextSupplier
-
bootServletContainer
public io.undertow.servlet.api.DeploymentManager bootServletContainer(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info, io.quarkus.arc.runtime.BeanContainer beanContainer, io.quarkus.runtime.LaunchMode launchMode, io.quarkus.runtime.ShutdownContext shutdownContext, boolean decorateStacktrace, String scrMainJava, List<String> knownClasses) -
addServletContextAttribute
-
addServletExtension
public void addServletExtension(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.ServletExtension extension) -
setupRequestScope
public void setupRequestScope(io.undertow.servlet.api.DeploymentInfo deploymentInfo, io.quarkus.arc.runtime.BeanContainer beanContainer) -
addServletContainerInitializer
-
addContextParam
-
setDenyUncoveredHttpMethods
public void setDenyUncoveredHttpMethods(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, boolean denyUncoveredHttpMethods) -
addSecurityConstraint
public void addSecurityConstraint(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, io.undertow.servlet.api.SecurityConstraint securityConstraint) -
addSecurityConstraint
public void addSecurityConstraint(io.quarkus.runtime.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(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, int sessionTimeout) -
sessionConfig
public io.undertow.servlet.api.ServletSessionConfig sessionConfig(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment) -
setSessionTracking
public void setSessionTracking(io.undertow.servlet.api.ServletSessionConfig config, Set<jakarta.servlet.SessionTrackingMode> modes) -
setSessionCookieConfig
-
addErrorPage
public void addErrorPage(io.quarkus.runtime.RuntimeValue<io.undertow.servlet.api.DeploymentInfo> deployment, String location, int errorCode) -
addErrorPage
-