Class DefaultFilterEnvironment

    • Field Detail

      • UNAVAILABLE

        public static final int UNAVAILABLE
        Defines the UNAVAILABLE constant.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultFilterEnvironment

        public DefaultFilterEnvironment()
        Constructor.
      • DefaultFilterEnvironment

        public DefaultFilterEnvironment​(WebApplication webApp,
                                        String filterName,
                                        Filter filter)
        Constructor.
        Parameters:
        webApp - the web application.
        filterName - the filter name.
        filter - the filter.
    • Method Detail

      • addMappingForServletNames

        public void addMappingForServletNames​(EnumSet<DispatcherType> dispatcherTypes,
                                              boolean isMatchAfter,
                                              String... servletNames)
        Add the mappings for the servlet names.
        Specified by:
        addMappingForServletNames in interface FilterRegistration
        Parameters:
        dispatcherTypes - the dispatcher types.
        isMatchAfter - is a matcher after.
        servletNames - the servlet names.
      • addMappingForUrlPatterns

        public void addMappingForUrlPatterns​(EnumSet<DispatcherType> dispatcherTypes,
                                             boolean isMatchAfter,
                                             String... urlPatterns)
        Add the mappings.
        Specified by:
        addMappingForUrlPatterns in interface FilterRegistration
        Parameters:
        dispatcherTypes - the dispatcher types.
        isMatchAfter - true to call the filter this mapping applies to after declared ones, false to call it before declared ones.
        urlPatterns - the url patterns.
      • getFilter

        public Filter getFilter()
        Get the filter.
        Returns:
        the filter.
      • getWebApplication

        public WebApplication getWebApplication()
        Get the web application.
        Returns:
        the web application.
      • setAsyncSupported

        public void setAsyncSupported​(boolean asyncSupported)
        Set async supported.
        Specified by:
        setAsyncSupported in interface Registration.Dynamic
        Parameters:
        asyncSupported - the async supported flag.
      • setClassName

        public void setClassName​(String className)
        Set the class name.
        Parameters:
        className - the class name.
      • setFilterName

        public void setFilterName​(String filterName)
        Set the filter name.
        Parameters:
        filterName - the filter name.
      • setInitParameter

        public boolean setInitParameter​(String name,
                                        String value)
        Set the init parameter.
        Specified by:
        setInitParameter in interface Registration
        Parameters:
        name - the parameter name.
        value - the parameter value.
        Returns:
        if the init parameter was set.
      • setInitParameters

        public Set<String> setInitParameters​(Map<String,​String> initParameters)
        Set the init parameters.
        Specified by:
        setInitParameters in interface Registration
        Parameters:
        initParameters - the init parameters
        Returns:
        the set of conflicting parameter names.
      • setStatus

        public void setStatus​(int status)
        Set status.
        Parameters:
        status - the status.
      • setWebApplication

        public void setWebApplication​(DefaultWebApplication webApplication)
        Set the web application.
        Parameters:
        webApplication - the web application.