org.springframework.boot.web.servlet

Class DynamicRegistrationBean<D extends javax.servlet.Registration.Dynamic>

    • Constructor Detail

      • DynamicRegistrationBean

        public DynamicRegistrationBean()
    • Method Detail

      • setName

        public void setName(String name)
        Set the name of this registration. If not specified the bean name will be used.
        Parameters:
        name - the name of the registration
      • setAsyncSupported

        public void setAsyncSupported(boolean asyncSupported)
        Sets if asynchronous operations are supported for this registration. If not specified defaults to true.
        Parameters:
        asyncSupported - if async is supported
      • isAsyncSupported

        public boolean isAsyncSupported()
        Returns if asynchronous operations are supported for this registration.
        Returns:
        if async is supported
      • getInitParameters

        public Map<String,String> getInitParameters()
        Returns a mutable Map of the registration init-parameters.
        Returns:
        the init parameters
      • addInitParameter

        public void addInitParameter(String name,
                                     String value)
        Add a single init-parameter, replacing any existing parameter with the same name.
        Parameters:
        name - the init-parameter name
        value - the init-parameter value
      • register

        protected final void register(String description,
                                      javax.servlet.ServletContext servletContext)
        Description copied from class: RegistrationBean
        Register this bean with the servlet context.
        Specified by:
        register in class RegistrationBean
        Parameters:
        description - a description of the item being registered
        servletContext - the servlet context
      • addRegistration

        protected abstract D addRegistration(String description,
                                             javax.servlet.ServletContext servletContext)
      • configure

        protected void configure(D registration)
      • getOrDeduceName

        protected final String getOrDeduceName(Object value)
        Deduces the name for this registration. Will return user specified name or fallback to convention based naming.
        Parameters:
        value - the object used for convention based names
        Returns:
        the deduced name

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.