Class 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 Detail

      • 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
    • Method Detail

      • setHotDeploymentResources

        public static void setHotDeploymentResources​(List<Path> resources)
      • 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 javax.servlet.Servlet> instanceFactory)
                                                                          throws Exception
        Throws:
        Exception
      • addServletInitParam

        public void addServletInitParam​(RuntimeValue<io.undertow.servlet.api.ServletInfo> info,
                                        String name,
                                        String value)
      • 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 javax.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,
                                        javax.servlet.DispatcherType dispatcherType)
                                 throws Exception
        Throws:
        Exception
      • addFilterServletNameMapping

        public void addFilterServletNameMapping​(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info,
                                                String name,
                                                String mapping,
                                                javax.servlet.DispatcherType dispatcherType)
                                         throws Exception
        Throws:
        Exception
      • registerListener

        public void registerListener​(RuntimeValue<io.undertow.servlet.api.DeploymentInfo> info,
                                     Class<?> listenerClass,
                                     BeanContainer factory)
      • 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)
      • addHotDeploymentWrapper

        public static void addHotDeploymentWrapper​(io.undertow.server.HandlerWrapper handlerWrapper)
      • servletContextSupplier

        public Supplier<javax.servlet.ServletContext> servletContextSupplier()
      • 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 javax.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<javax.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)