类 RegistrationBean

    • 方法详细资料

      • setName

        public void setName​(String name)
        Set the name of this registration. If not specified the bean name will be used.
        参数:
        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.
        参数:
        asyncSupported - if async is supported
      • isAsyncSupported

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

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

        public boolean isEnabled()
        Return if the registration is enabled.
        返回:
        if enabled (default true)
      • addInitParameter

        public void addInitParameter​(String name,
                                     String value)
        Add a single init-parameter, replacing any existing parameter with the same name.
        参数:
        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.
        参数:
        value - the object used for convention based names
        返回:
        the deduced name
      • configure

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

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

        public int getOrder()
        Get the order of the registration bean.
        指定者:
        getOrder 在接口中 org.springframework.core.Ordered
        返回:
        the order