org.springframework.boot.web.servlet

Class RegistrationBean

    • Constructor Detail

      • RegistrationBean

        public RegistrationBean()
    • 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 support for this registration. If not specified defaults to true.
        Parameters:
        asyncSupported - if async is supported
      • isAsyncSupported

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

        public void setEnabled(boolean enabled)
        Flag to indicate that the registration is enabled.
        Parameters:
        enabled - the enabled to set
      • isEnabled

        public boolean isEnabled()
        Return if the registration is enabled.
        Returns:
        if enabled (default true)
      • 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
      • 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
      • configure

        protected void configure(javax.servlet.Registration.Dynamic registration)
        Configure registration base settings.
        Parameters:
        registration - the registration
      • setOrder

        public void setOrder(int order)
        Set the order of the registration bean.
        Parameters:
        order - the order
      • getOrder

        public int getOrder()
        Get the order of the registration bean.
        Specified by:
        getOrder in interface org.springframework.core.Ordered
        Returns:
        the order

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