Class UndertowDeploymentRecorder

java.lang.Object
io.quarkus.undertow.runtime.UndertowDeploymentRecorder

public class UndertowDeploymentRecorder extends Object
Provides the runtime methods to bootstrap Undertow. This class is present in the final uber-jar, and is invoked from generated bytecode
  • 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

      final RuntimeValue<HttpConfiguration> httpConfiguration
  • Constructor Details

  • Method Details

    • setHotDeploymentResources

      public static void setHotDeploymentResources(List<Path> resources)
    • 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

      public static SocketAddress 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

      public Supplier<jakarta.servlet.ServletContext> 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

      public void setSessionCookieConfig(io.undertow.servlet.api.ServletSessionConfig config, String name, String path, String comment, String domain, Boolean httpOnly, Integer maxAge, Boolean secure)